|
ini_parse_quantityGet interpreted size from ini shorthand syntax Description
int ini_parse_quantity(string
$shorthand )Returns the interpreted size in bytes on success from an ini shorthand. Parameters
Return ValuesReturns the interpreted size in bytes as an int. Errors/Exceptions
If the value cannot be parsed, or an invalid multiplier is used, an Examples
Example #1 A few ini_parse_quantity examples
The above example will output something similar to: int(1024) int(1073741824) int(524288) int(261120) int(10240) int(532) int(532) Warning: Invalid quantity "Foobar": no valid leading digits, interpreting as "0" for backwards compatibility int(0) Warning: Invalid quantity "10F": unknown multiplier "F", interpreting as "10" for backwards compatibility int(10) See Also
|