I have a PhP variable called $edited which value is, for example; /62fg5/
I wish to strip all the "/" from it, so I would be left with 62fg5
I have tried this;
But with that echo, nothing is outputted. It's like it makes the WHOLE variable equal to nothing, rather than just the slash. Can anyone help?PHP Code:$edited = str_replace($edited,"/","");
echo $edited;



Reply With Quote

Bookmarks