[PHP] 超簡單!抓副檔名的語法

$file_ext = strrchr($file_name,'.');
echo $file_ext;  //例如  .doc