3
$str = "/d/file/shop/7c0ea5b0b96a490a9c78255ddb559943.jpg";
如何从完整路径获取文件名7c0ea5b0b96a490a9c78255ddb559943.jpg
?如何在php中获取文件名称
非常感谢。
$str = "/d/file/shop/7c0ea5b0b96a490a9c78255ddb559943.jpg";
如何从完整路径获取文件名7c0ea5b0b96a490a9c78255ddb559943.jpg
?如何在php中获取文件名称
非常感谢。
basename($str);
http://php.net/manual/en/index.php是一件很棒的事情 – balupton 2010-08-20 04:38:02