PHP funkce strspn()
06. 07. 2020Dostupnost ve verzích: PHP 4.0
Finds the length of the first segment of a string consisting
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$subject | string | The string to examine. | |
$mask | string | The list of allowable characters to include in counted segments. | |
$start | int | null, | The position in subject to start searching. |
$length | int | null | The length of the segment from subject to examine. |
Návratové hodnoty
int
the length of the initial segment of str1 which consists entirely of characters in str2.
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