My php is weak and I'm trying to change this string:
//www.example.com/backend.php?/c=crud&m=index&t=care
^
to be:
//www.example.com/backend.php?c=crud&m=index&t=care
^
removing the /
after the backend.php?
. Any ideas on the best way to do this?
Thanks!
Overflowh
1,0936 gold badges18 silver badges40 bronze badges
asked Nov 5, 2008 at 6:34
1
I think that it's better to use simply str_replace, like the manual says:
If you don't need fancy replacing rules [like regular expressions], you should always use this function instead of ereg_replace[] or preg_replace[].