Hi,
I'm having a few problems on working out how to do this. (PHP)
My script gets passed a search varaible which is typed in by the user.
The script returns something like;
books+cars+hotrods
This then needs to be converted to a variable I can uses as a file reference - which can be done by str_replace ("+","/" $variable);
however: I can't work out how to change the incoming variable to the correct format if the input is something like:
+books++++++cars+++hotrods++
Anyone know how I can always convert something like the above to:
books/cars/hotrods
Can it be done without using regex??
Cheers!!