Gen. partnerAlgotech

PHP funkce strstr()

Find first occurrence of a string

|
11. září 2019

Dostupnost ve verzích: PHP 4.0

Find first occurrence of a string

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$haystack string není Zpracovávaný řetězec.
$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, strstr returns the part of the haystack before the first occurrence of the needle.

string

the portion of string, or false if needle is not found.

Další zdroje

Oficiální dokumentace funkce strstr

Načítání komentářů...

Zůstaňte v obraze

Přihlaste se k odběru našeho newsletteru a získejte nejnovější informace o kybernetické bezpečnosti přímo do vaší e-mailové schránky.

Vaše údaje jsou v bezpečí. Newsletter můžete kdykoliv odhlásit.