I. Na początek
II.Instalacja i konfiguracja
III. Opis języka
IV. Bezpieczeństwo
V. Możliwości
VI. Opis funkcji
VII. Zend API
VIII. PHP API: Interfejs rozszerzeń
X. Dodatki

Manual PHP

Zapraszam do korzystania z zamieszczonego przeze mnie manuala php. Mam nadzieję, że ta jego kopia przyda się zarówno profesjonalnym programistą, jak i początkującym twórcą skryptów PHP.

Autorzy

Mehdi Achour,
Friedhelm Betz,
Antony Dovgal,
Nuno Lopes,
Philip Olson,
Georg Richter,
Damien Seguy,
Jakub Vrana,
I kilka innych

Redakcja:

Gabor Hojtsy,
Marcin Dąbrowski, Michał Grzechowiak, Leszek Krupiński, Adam Major, Paweł Paprota, Michał Pena, Sławomir Pucia, Jarek Tabor, Tomasz Wójtowicz,

substr_count

(PHP 4, PHP 5)

substr_count -- Count the number of substring occurrences

Description

int substr_count ( string haystack, string needle )

substr_count() returns the number of times the needle substring occurs in the haystack string. Please note that needle is case sensitive.

Przykład 1. substr_count() example

<?php
echo substr_count("This is a test", "is"); // prints out 2
?>

See also count_chars(), strpos(), substr(), and strstr().


print 'wykładziny dywanowe 1171501983' . "\n"; print 'hestia 1171501665' . "\n"; print 'długopisy reklamowe warszawa 1171501901' . "\n"; print 'Dochodzenie roszczeń 1171501934' . "\n";