PHP funkce strripos()

Dostupnost ve verzích: PHP 5.0

Find position of last occurrence of a case-insensitive string in a string

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$haystack string není The string to search in
$needle string není Note that the needle may be a string of one or more characters.
$offset int null The offset parameter may be specified to begin searching an arbitrary number of characters into the string.

int

the numerical position of the last occurrence of needle. Also note that string positions start at 0, and not 1.

If needle is not found, false is returned.

Další zdroje

Oficiální dokumentace funkce strripos

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.