- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
function ini_size_to_bytes($value)
{
$value = trim($value);
$retval = intval($value);
switch(strtolower($value[strlen($value) - 1]))
{
case 'g':
$retval *= 1024;
/* break missing intentionally */
case 'm':
$retval *= 1024;
/* break missing intentionally */
case 'k':
$retval *= 1024;
break;
}
return $retval;
}