站內搜尋

Monday, February 17, 2014

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

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

No comments:

Post a Comment