25 if(is_array($search)) {
26 foreach($search as $idx => $s)
32 return preg_replace($search, $replace, $string);
37 if ((
$pos = strpos($search,
"\0")) !==
false)
38 $search = substr($search,0,
$pos);
39 if (preg_match(
'!([a-zA-Z\s]+)$!s', $search, $match) && (strpos($match[1],
'e') !==
false)) {
41 $search = substr($search, 0, -strlen($match[1])) . preg_replace(
'![e\s]+!',
'', $match[1]);