SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: No Ending Delimiter Error
Threaded View
-
Jun 21, 2001, 16:26 #1
No Ending Delimiter Error
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);
}Last edited by Ace Nova; Jun 21, 2001 at 17:22.
Bookmarks