Finding dollar sign with strpos
<p>So I'm trying to find several special characters, such as {, $ in a string returned by DOM element</p>

<p>When I run</p>

<pre><code>if(strpos("$", $u) === FALSE AND strpos("{", $u) === FALSE AND $u != "#") {
echo "Attempting {$u} ecoded: ".urlencode($u)."&lt;br/&gt;";
return true;
}
</code></pre>

<p>However when I run it, it prints out:</p>

<pre><code>Attempting register.php ecoded: register.php
Attempting {$url} ecoded: %7B%24url%7D
Attempting $authUrl ecoded: %24authUrl
Attempting services.php ecoded: services.php
</code></pre>

<p>So I tried using HEX values and ASCII but still had no luck!</p>
