Php compare data with a backslash to mysql one : get_magic_quotes_gpc() is 0;
if I replace other data like these

    $replace[0]=">";
    $replace[1]="<";
    $replace[2]="&";
    $replace[3]='"'; 
       
    $pattern[0]="#&gt;#";
    $pattern[1]="#&lt;#";
    $pattern[2]="#&amp;#";
    $pattern[3]="#&quot;#";
        
    $pass=preg_replace($pattern, $replace, $pass);

it's works, but a backslash and a single qoute::

    $replace[5]="\\";
    $pattern[5]="/&#92;/"; 

fail. php5.2