How can i grab the extension only in a php string?
echo $dir.'/'.$file;
outputs: folder/subfolder1/image.jpg
so i want to grab only jpg
How can i grab the extension only in a php string?
echo $dir.'/'.$file;
outputs: folder/subfolder1/image.jpg
so i want to grab only jpg