use needle

git-svn-id: file:///svn/phpbb/trunk@6657 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-11-26 13:07:43 +00:00
parent 52717466fb
commit dd5f0c320d

View file

@ -127,11 +127,11 @@ if (extension_loaded('mbstring'))
if (is_null($offset)) if (is_null($offset))
{ {
return mb_strrpos($str, $search); return mb_strrpos($str, $needle);
} }
else else
{ {
return mb_strrpos($str, $search, $offset); return mb_strrpos($str, $needle, $offset);
} }
} }
} }
@ -152,7 +152,7 @@ if (extension_loaded('mbstring'))
return false; return false;
} }
return mb_strrpos($str, $search); return mb_strrpos($str, $needle);
} }
else else
{ {
@ -164,7 +164,7 @@ if (extension_loaded('mbstring'))
$str = mb_substr($str, $offset); $str = mb_substr($str, $offset);
if (false !== ($pos = mb_strrpos($str, $search))) if (false !== ($pos = mb_strrpos($str, $needle)))
{ {
return $pos + $offset; return $pos + $offset;
} }