Gen. partnerAlgotech

PHP funkce substr()

Return part of a string

|
11. září 2019

Dostupnost ve verzích: PHP 4.0

Return part of a string

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$string string není Zpracovávaný řetězec.
$start int není If start is non-negative, the returned string will start at the start'th position in string, counting from zero. For instance, in the string 'abcdef', the character at position 0 is 'a', the character at position 2 is 'c', and so forth.
$length int null If length is given and is positive, the string returned will contain at most length characters beginning from start (depending on the length of string).

string

|bool the extracted part of string or false on failure.

Další zdroje

Oficiální dokumentace funkce substr

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.