Afficher la liste déroulante

mb_stristr()

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

$string mb_stristr (
    
// string $haystack
    
// string $needle
    
?// [bool $before_needle = false]
    
?  // [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
?>
Résultat
$string = 'ola'
Exemples
#1 mb_stristr  ("española",
 
"ol",
 
false)
#2 mb_stristr  ("española",
 
"ol",
 
true,
 
"UTF-8")
#3 mb_stristr  ("española",
 
"OL",
 
false,
 
"UTF-8")
#4 mb_stristr  ("española",
 
"an",
 
false,
 
"UTF-8")
Voir aussi
mb_convert_case, mb_internal_encoding, mb_strstr, stristr, strstr