php addcslashes () function syntax

php addcslashes () function syntax

Role: Returns a string backslash before the specified character

Syntax: addcslashes (String, characters)

parameter:

parameter description
string  It must require the string to be escaped.
characters   It must provide for the escape character or range of characters.    

 Description: Returns a string already escaped. Linear motor selection

php addcslashes () function examples

<?php
$str = "Welcome to php.cn!";
echo $str."<br>";
echo addcslashes($str,'m')."<br>";
echo addcslashes($str,'p')."<br>";
?>

Guess you like

Origin www.cnblogs.com/furuihua/p/11881858.html