PHP function addslashes()

Availability in PHP 4.0

Adds slashes to the string in appropriate places so that the content is escaped.

Parameters

Parameter Data Type Default Value Note
$str string not String to be escaped.

Return values

string - escaped string.

Other resources

Official documentation of the addslashes function

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.