• PHP Video Tutorials

PHP - Function addcslashes



Syntax

string addcslashes ( string $str , string $charlist )

Definition and Usage

It returns the string with blackslashes

Return Values

It returns the escaped string

Parameters

Sr.No Parameters & Description
1

str

This string to be escaped

2

charlist

The list of characters to be escaped

Example

Try out the following example

<?php
   echo addcslashes("Foo['.']", 'z..A');
?>
php_function_reference.htm
Advertisements