获取子字符串中最后一个字符的位置

Get position of last character in a substring

$big = "new york city";
$small ="or";
$pos = strpos($big, $small);
echo $pos;

Returns 5 但我希望它成为 return 6,这是 "r" 的位置。提前致谢

$big = "new york city";
$small ="or";
$pos = strpos($big, $small);
$pos = $pos + strlen($small) - 1;

echo $pos;