webHauser Blog

Icon

Welcome to webHauser weblog

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));

Leave a Reply

You must be logged in to post a comment.