PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a variable, $text, that contains some carriage returns:
Line1
Line2
Line3
etc...
What do I do to replace the carriage returns in $text with something that can be sent in the QUERY_STRING? (eg. %20 for space, I dont know what it is for carriage return).
I tried doing it with str_replace, but this doesnt seem to replace anything: