//echo convertUnit(“854.41 KB”);
/*转换单位*/
function convertUnit($size, $unit=’K’){
preg_match(‘/^(d+.d+)s*(w?)B?$/i’, $size, $o);
//var_dump(strt[……]
//echo convertUnit(“854.41 KB”);
/*转换单位*/
function convertUnit($size, $unit=’K’){
preg_match(‘/^(d+.d+)s*(w?)B?$/i’, $size, $o);
//var_dump(strt[……]