iconv_strpos():
<?php
iconv_set_encoding
('internal_encoding''utf8');
$str "Vær så god!";
echo 
"The o is at position: "strpos($str'o'), "<br />\n";
echo 
"The o is at position: "iconv_strpos($str'o'), "\n";
?>
Output:
The o is at position: 10
The o is at position: 8




iconv_strrpos():
<?php
iconv_set_encoding
('internal_encoding''utf8');
$str "Vær så god!";
echo 
"The å is at position: "strrpos($str'å'), "<br />\n";
echo 
"The å is at position: "iconv_strrpos($str'å'), "\n";
?>
Output:
The å is at position: 6
The å is at position: 5