Rapide Advanced Adulte
   mb_substr_count   
Resultatsmb_substr_count   |   Contact

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.mb check encoding
.mb convert case
.mb convert encoding
.mb convert kana
.mb convert variables
.mb decode mimeheader
.mb decode numericentity
.mb detect encoding
.mb detect order
.mb encode mimeheader
.mb encode numericentity
.mb ereg match
.mb ereg replace
.mb ereg search getpos
.mb ereg search getregs
.mb ereg search init
.mb ereg search pos
.mb ereg search regs
.mb ereg search setpos
.mb ereg search
.mb ereg
.mb eregi replace
.mb eregi
.mb get info
.mb http input
.mb http output
.mb internal encoding
.mb language
.mb list encodings alias names
.mb list encodings
.mb list mime names
.mb output handler
.mb parse str
.mb preferred mime name
.mb regex encoding
.mb regex set options
.mb send mail
.mb split
.mb strcut
.mb strimwidth
.mb stripos
.mb stristr
.mb strlen
.mb strpos
.mb strrchr
.mb strrichr
.mb strripos
.mb strrpos
.mb strstr
.mb strtolower
.mb strtoupper
.mb strwidth
.mb substitute character
.mb substr count
.mb substr
 
   

  mb_substr_count  


mb_substr_count

(PHP 4 >= 4.3.0, PHP 5)

mb_substr_count -- Compte le nombre d'occurrences d'une sous-chaîne

Description

int mb_substr_count ( string haystack, string needle [, string encoding] )

mb_substr_count() retourne le nombre d'occurrences de la chaîne needle dans la chaîne haystack string.

encoding spécifie le jeu de caractères utilisé pour needle et haystack. Si omis, le jeu de caractères interne est utilisé.

Exemple 1. Exemple avec mb_substr_count()

<?php
echo mb_substr_count("Ceci est un test", "es"); // affiche 2
?>

Voir aussi substr_count(), mb_strpos() et mb_substr().


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur