PHP funkce stristr()
Dostupnost ve verzích: PHP 4.0
Case-insensitive
Parametry
| 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. |
Návratové hodnoty
string
the matched substring. If needle is not found, returns false.