Dostupnost ve verzích: PHP 4.0
Case-insensitive
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$haystack |
string |
není | The string to search in |
$needle |
mixed |
není | If needle is not a string, it is converted to an integer and applied as the ordinal value of a character. |
$before_needle |
bool |
null | If true, stristr returns the part of the haystack before the first occurrence of the needle. |
string
the matched substring. If needle is not
found, returns false.
Oficiální dokumentace funkce stristr
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:
Články píše Jan Barášek © 2009-2025 | Kontakt | Mapa webu
Status | Aktualizováno: ... | cs