This Code from phpBB is giving me a No ending Delimeter Error.
HELP!
/**
* Less agressive version of stripslashes. Only replaces \\ \' and \"
* The PHP stripslashes() also removed single backslashes from the string.
* Expects a string or array as an argument.
* Returns the result.
*/
function own_stripslashes($string)
{
$find = array(
'/\\\\\'/', // \\\'
'/\\\\/', // \\
'/\\\'/', // \'
'/\\\"/'); // \"
$replace = array(
'\'', // \
'\\', // \
'\'', // '
'"'); // "
return preg_replace($find, $replace, $string);
}
Bookmarks