Availability in PHP 5.0
Find position of last occurrence of a case-insensitive string in a string
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$haystack |
string |
not | The string to search in |
$needle |
string |
not | 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.
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:
Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.