Display the text box

mb_strripos()

« mb_strrichr | mb_strrpos »
<?php
mb_internal_encoding
("UTF-8");

$int mb_strripos (
    
// string $haystack
    
// string $needle
    
// [int $offset = 0]
    
?  // [string $encoding = mb_internal_encoding()]
);

// enter non ASCII characters in hex if $encoding is not UTF-8
// the result may not display properly if $encoding is not UTF-8
?>
Result
$int = 5
Examples
#1 mb_strripos  ("español",
 
"ol",
 
0)
#2 mb_strripos  ("español",
 
"OL",
 
0,
 
"UTF-8")
#3 mb_strripos  ("español",
 
"an",
 
0,
 
"UTF-8")
#4 mb_strripos  ("español",
 
"pa",
 
4,
 
"UTF-8")
See also
mb_internal_encoding, mb_stripos, mb_strrpos, strripos, strrpos