May 17, 2007
Very quick way to get a file extenstion
The array_pop() function will push the last element of the array in the assigned varable (ie $file_ext) in this case.
$file_ext = array_pop(explode(”.”,$real_filename));
May 17, 2007
The array_pop() function will push the last element of the array in the assigned varable (ie $file_ext) in this case.
$file_ext = array_pop(explode(”.”,$real_filename));
Leave a Reply
You must be logged in to post a comment.