Character encoding when passing value to PHP in GET URL parameter
<p>I have the following HTTP GET parameter in my URL what I'm trying to return in a query:</p>

<pre><code>Tablets &amp; Phones
</code></pre>

<p>When I do <code>var_dump($_GET['my_get_param'])</code>, the string is not full, instead I'm getting <code>"Tablets "</code> (note the space afterwards.) How can I encode the string to get the desired value? I have been trying urlencode and html_specialchars, but without any result.</p>

<p><code>var_dump(urlencode($_GET["my_get_param"))</code> is returning <code>"Tablets+"</code>.</p>
