Display the drop-down list

mb_strpos()

« mb_strlen | mb_strrchr »
<?php
mb_internal_encoding
("UTF-8");

$int mb_strpos (
    
// 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 = false
Examples
#1 mb_strpos  ("español",
 
"ol",
 
0)
#2 mb_strpos  ("español",
 
"OL",
 
0,
 
"UTF-8")
#3 mb_strpos  ("español",
 
"an",
 
0,
 
"UTF-8")
#4 mb_strpos  ("español",
 
"pa",
 
4,
 
"UTF-8")
See also
mb_internal_encoding, mb_stripos, strpos