PHP funkce addcslashes()
06. 07. 2020Dostupnost ve verzích: PHP 4.0
Quote string with slashes in a C style
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$str | string | The string to be escaped. | |
$charlist | string | A list of characters to be escaped. If charlist contains characters \n, \r etc., they are converted in C-like style, while other non-alphanumeric characters with ASCII codes lower than 32 and higher than 126 converted to octal representation. |
Návratové hodnoty
string
the escaped string.
Další zdroje
https://php.net/manual/en/function.addcslashes.php
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce