php -r "print_r(pathinfo('/1/1/1/我-我.xls'));" 输出Array ( [dirname] => /1/1/1 [basename] => -我.xls [extension] => xls [filename] => -我) 在容器内设置locale为en_US.UTF-8后,再执行Array ( [dirname] => /1/1/1 [basename] => 我-我.xls [extension] => xls [fi...
array pathinfo ( string path) string basename ( string path [, string suffix]) The pathinfo() function is designed to take a filename and return the same filename broken into various components. It takes a filename as its only parameter, and returns an array with three elements: dirname...
$pretty_name = call_user_func(array(basename($pathinfo["dirname"]) .'_'. $pathinfo["filename"],'prettyName'));if(is_null($pretty_name)) { $pretty_name = $pathinfo["filename"]; } $ret[basename($pathinfo["dirname"])][$pathinfo["filename"]] = $pretty_name; } } } } }return$...