This is the function im using;
function own_stripslashes($string)
{
$find = array(
'/\\\'/', // \\'
'/\\/', // \
'/\\'/', // \'
'/\\"/'); // \"
$replace = array(
'\'', // \
'\', // \
'\'', // '
'"'); // "
return preg_replace($find, $replace, $string);
}
Ive used the preg_replace() before in this file, but its just comes up with the error only on that line.
Thanks Anand