PHP ignore $ character in string
<p>I am using the following function:</p>

<pre><code>function replace_password_line($data) {
    $password = "Ga$man";
    if (stristr($data, 'password_here')) {
     return str_replace('password_here', $password, $data);
    }
    return $data;
}
</code></pre>

<p>My problem is the $ inside the string is being confused with a variable and the output results in "password_here" being replaced with "Ga"... the $ and everything after is being left off. Seems to be that it is being confused with a variable. </p>

<p>How do I fix this? Can I use a $ in a string?</p>