title: Is there a function similar to mysql_real_escape_string for php's sqlsrv library?
body: <p>I'm am looking for a function similar to <code>mysql_real_escape_string</code> for the <strong>SQLSRV</strong> library.</p>
  
  <p>Specifically I'm having difficulties escaping single quotation marks. Instead of escaping with a <code>"\"</code> like in <strong>mysql</strong> you use a single quote in front of the other single quote as the escape method.</p>
  
  <p>I'm working on coming up with a solution of my own using <code>preg_replace</code> but was just wondering if there was something else out there I was missing.</p>