title: Convert + to %2B in a string PHP
body: <p>So I have been debugging a script and a lot of the data being passed into it contained this symbol: '+'. I discovered that if I changed it to %2B that it worked. I know this must be sort of a very basic question but after poking around the PHP documentation, I couldn't find a solution. Is there a built-in PHP function for converting ascii symbols like this?</p>