Use the $ symbol as text, not as a variable in PHP
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2557834/dollar-sign-in-password-string-treated-as-variable">Dollar ($) sign in password string treated as variable</a>  </p>
</blockquote>



<p>I am using a code where there has to be a $ in the text.</p>

<pre><code>$curlObj = curl_init();
curl_setopt($curlObj, CURLOPT_URL, "URL");
curl_setopt($curlObj, CURLOPT_USERPWD, "user:$ape0ZDPvxE/");
curl_exec($curlObj);
curl_close($curlObj);
</code></pre>

<p>As you can see, the password is md5'ed, and thus there is a $ in it. When I execute this, I get an undefined variable exception. Does anyone know how to prevent this?</p>
