PHP funkce strspn()

Dostupnost 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 není The string to examine.
$mask string není 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.

int

the length of the initial segment of str1 which consists entirely of characters in str2.

Další zdroje

Oficiální dokumentace funkce strspn

AI konzultace & implementace

Pomohu vám zavést AI do vašeho projektu– od analýzy a návrhu řešení až po nasazení do produkce. Ušetřete čas, zjednodušte procesy a získejte konkurenční výhodu.

Domluvit konzultaci
Konzultant: Jan Barášek
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

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.