As in title, I need to rename a file with php, so here's the code
$file = "filenamehere.pdf"'
$file_extension = /* I need a help here */
All I need is a code which will recognize file extension of $file;
Or maybe there's some easier way to do this?
Thanks for any help.