PHP Manual

PHP funkce str_word_count()

2019-09-11T08:04:03.000Z

Obsah článku

Dostupnost 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 není 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'

mixed

an array or an integer, depending on the
format chosen.

Další zdroje

Oficiální dokumentace funkce str-word-count

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
188.

Potřebujete poradit s PHP?

Nabízím trénink vývojářů, konzultace, školení a analýzu návrhových vzorů. Osobně v Praze nebo online.

Napište mi, pokud si nevíte rady.

Lektor: Jan Barášek

V jiných jazycích

Status:
All systems normal.
2025