i need to insert a string into the string $filename before the file extension. i was trying to use substr_replace to do it but i dont think i understand how to use substr_replace and i cant even get it to remove the file extension.
so i need to take "file1.jpg" and change it to "file1-1.jpg"
thanks.
so i need to take "file1.jpg" and change it to "file1-1.jpg"
thanks.