July 11th, 2000, 05:32 PM
I start with this:
$words = "three text things";
I want $words to equal three+text+things. Can someone give me the syntax for replacing all occurences of spaces with plus signs? It should just be a one liner.
Thanks! Ryan McKillen
[This message has been edited by scream (edited July 11, 2000).]
July 11th, 2000, 05:46 PM
urlencode($words) will make all spaces a +, it also encodes some other characters. urldecode($words) get's back what you started with.
July 11th, 2000, 05:49 PM
Thanks a lot! Easier than I thought.