PHP Get File Extension From A String
During file upload, we often needs file extension to validate file. Here in this post I have written a PHP function that will get the file extension from string.
PHP Example Function:
- function getFileExtension($file_name)
- {
- return substr(strrchr($file_name,‘.’),1);
- }
Follow @phpzag

Great submit admin! i bookmarked your net blog site. i’ll search ahead in the event you could have an e-mail variety including.
Can’t say enough about this website – its alot better than mine.
Nice post. I learn something totally new and challenging on websites I stumbleupon everyday.
It will always be exciting to read through content from other writers and practice something from other websites.