Escaping strings passed to a sqlsrv_connect function
<p>I have been using the sqlsrv driver for php and have an array of connection details which I then pass to the sqlsrv_connect().</p>

<p>This has worked fine for standard passwords, however, it has run into trouble when I tried a password string which containted a $ symbol and got the following notice:</p>

<p>Notice: Undefined variable: xxxx in \xxxx\classes\Class.Database.php</p>

<p>The undefined variable is all the characters after the $ symbol.</p>
