Availability in PHP 4.0
Quote string with slashes in a C style
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$str |
string |
not | String to be escaped. |
$charlist |
string |
not | List of characters to be escaped. If charlist contains \n, \r, etc., they are converted to C style, while other non-alphanumeric characters with ASCII codes lower than 32 and higher than 126 are converted to octal representation. |
string
the escaped string.
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:
Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.