- ⌂ php_util
- Static Methods
php_util::php_ini_size_to_bytes()
Returns the number of bytes based on a PHP INI bytes string like 10G.
Prototype
int php_ini_size_to_bytes(string $size)
Parameters
- size - String that represents the number of bytes in the form of a number or number followed by 'g', 'm' or 'k'.
Example
$size = ini_get('post_max_size');
$bytes = \io_comand_util\php_util::php_ini_size_to_bytes($size);
echo($bytes);