how can i replace spaces with %20 using php?

RickyG

New member
I am sending emails using php while using GET function and i am having trouble pasting values with spaces. I want to replace spaces with %20 when sending the link in an email. How can i do this? Is this at all possible?

E.g. modify.php?name=Ricky Gonzales
modify.php?name=Ricardo%20Gonzales

Is there a way to do this?
 
Back
Top