addcslashes php

addcslashes (PHP 4, PHP 5, PHP 7) addcslashes — Quote string with slashes in a C style. Description. string addcslashes ( string $str, string $charlist)
Definition and Usage. The addcslashes() function returns a string with backslashes in front of the specified characters. Note The addcslashes() function is case
更多实例 例子 1 向字符串中的预定义字符添加反斜杠 <?php $str = \"Who\'s Bill Gates?\"; echo $str . \" This is not safe in a database query.<br>\"; echo addslashes($str) . \" This
If you are using addcslashes() to encode text which is to later be decoded back to it\'s original form, you MUST specify the backslash (\\) character in charlist! Example <?php
May it is better use the function mysql_real_escape_string instead of addslashes when inserting data into a MySQL database/manual/en
addcslashes (PHP 4, PHP 5) addcslashes — 以 C 语言风格使用反斜线转义字符串中的字符 说明 string addcslashes ( string $str, string $charlist) 返回字符串,该字符串在
更多实例 例子 1 向字符串中的特定字符添加反斜杠 <?php $str = \"Welcome to Shanghai!\"; echo $str.\"<br>\"; echo addcslashes($str,\'m\').\"<br>\"; echo addcslashes($str,\'H
<?php echo addcslashes(\'foo[ ]\', \'A..z\'); // output \\f\\o\\o\\[ \\] // All upper and lower-case letters will be escaped // but so will the [\\]^_` and any tabs, line // feeds, carriage