title: php 5.4 magic_quotes_gpc alternative?
body: <p>I was using <code>php 5.2</code> earlier. Now I want to upgrade <code>php 5.4.</code> Magic quotes are removed now. I want to make my application work properly. Which function I should use for escaping data <code>mysql_real_escape_string()</code> or <code>addslashes()</code> ?</p>
  
  <p>Which function from the above will give the same results as of <code>magic_quotes_gpc</code> setting??</p>