Some of the variables I have do not work with images an example would be
- 123456.jpg is ok
- 123/456.jpg is not
I want to replace the / with a -
this is the line of code i am using but it doesn't work
$filename_new = str_replace('/','-',$filename);
Any help with this would be greatly appreciated.