function Sql_Str($sql){ return str_replace(array("\\", "\0", "'", '"', "\x1a",chr(0)), array("\\\\", "\\0", "\\'", '\\"', "\\Z",''),$sql);}