php 获取文件后缀,文件名,路径方法

$file_path = pathinfo('/www/aixingwuyue/aixing.jpg'); echo "$file_path ['dirname']\n"; echo "$file_path ['basename']\n"; echo "$file_path ['extension