title: How to properly URL encode a string in PHP?
body: <p>I'm making a search page, where you type a search query and the form is submitted to <code>search.php?query=your query</code>. What PHP function is the best and that I should use for encoding/decoding the search query?</p>