Показать выпадающий список

mb_substr_count()

« mb_substr | mcrypt_create_iv »
<?php
mb_internal_encoding
("UTF-8");

$int mb_substr_count (
    
// string $haystack
    
// string $needle
    
?  // [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
?>
Результат
$int = 2
Примеры
#1 mb_substr_count  ("This is a test",
 
"is")
См. также
mb_internal_encoding, mb_stripos, mb_strpos, mb_substr, substr_count