downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mb_substr> <mb_substitute_character
[edit] Last updated: Fri, 23 Mar 2012

view this page in

mb_substr_count

(PHP 4 >= 4.3.0, PHP 5)

mb_substr_countMevcut alt dizgelerin sayısı ile döner

Açıklama

int mb_substr_count ( string $samanlık , string $iğne [, string $kodlama ] )

samanlık ile belirtilen dizge içinde iğne ile belirtilen dizgelerden kaç tane bulunduğu bilgisini verir.

Değiştirgeler

samanlık

İçinde arama yapılacak dizge.

needle

Aranacak dizge.

kodlama

kodlama değiştirgesinde karakter kodlaması belirtilir. Belirtilmediği takdirde dahili karakter kodlaması kullanılır.

Dönen Değerler

samanlık ile belirtilen dizge içinde iğne ile belirtilen dizgelerden kaç tane bulunduğu.

Örnekler

Örnek 1 - mb_substr_count() örneği

<?php
echo mb_substr_count("Bu da Buda bu da Buda.""Bu"); // 3 basar
?>

Ayrıca Bakınız

  • mb_strpos() - Bir dizgenin içinde başka bir dizgeye ilk rastlanılan noktanın indisini döndürür
  • mb_substr() - Dizgenin bir alt dizgesini alır
  • substr_count() - Bir dizge içinde belli bir alt dizgeden kaç tane bulunduğunu bulur



add a note add a note User Contributed Notes mb_substr_count
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites