public static function getBytesFromSizeMeasurement($measurement) {
		$bytes = doubleval($measurement);
		if (stripos($measurement, 'G')) {
			$bytes *= 1024 * 1024 * 1024;
		} elseif (stripos($measurement, 'M')) {
			$bytes *= 1024 * 1024;
		} elseif (stripos($measurement, 'K')) {
			$bytes *= 1024;
		}
		return $bytes;
	}
public static function getBytesFromSizeMeasurement($measurement) {
		$bytes = doubleval($measurement);
		if (stripos($measurement, 'G')) {
			$bytes *= 1024 * 1024 * 1024;
		} elseif (stripos($measurement, 'M')) {
			$bytes *= 1024 * 1024;
		} elseif (stripos($measurement, 'K')) {
			$bytes *= 1024;
		}
		return $bytes;
	}
public static function getBytesFromSizeMeasurement ( $ measurement ) { $ bytes = doubleval ( $ measurement ) ; if ( stripos ( $ measurement , 'G' ) ) { $ bytes *= 1024 * 1024 * 1024 ; } elseif ( stripos ( $ measurement , 'M' ) ) { $ bytes *= 1024 * 1024 ; } elseif ( stripos ( $ measurement , 'K' ) ) { $ bytes *= 1024 ; } return $ bytes ; }
Gets the bytes value from a measurement string like "100k".

@param string $measurement: The measurement (e.g. "100k")
@return integer The bytes value (e.g. 102400)
Gets the bytes value from a measurement string like 100k .