PHP funkce str_word_count()
📅 06. 07. 2020Dostupnost ve verzích: PHP 4.3.0
Return information about words used in a string
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$string | string | The string | |
$format | int | null, | Specify the return value of this function. The current supported values are: 0 - returns the number of words found @param string $charlist [optional] A list of additional characters which will be considered as 'word' |
$charlist | string | null | A list of additional characters which will be considered as 'word' |
Návratové hodnoty
mixed
an array or an integer, depending on the format chosen.
Další zdroje
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce