2015-10-28 38 views

回答

3

pathinfo

$string = './image/photo.jpg'; 
echo pathinfo($string, PATHINFO_FILENAME); // output: photo