php字符前加上反斜杠,包括 单引号、双引号、反斜杠
function d_addslashes( $string , $force = 0) { if (! $globals [ 'magic_quotes_gpc' ] || $force ) { if ( is_array ( $string )) { foreach ( $string as $key => $val ) $string [ $key ] = d_addslashes( $val , $force ); //开源代码phpfensi.com } else $string = addslashes ( $string ); } return $string ; }查看更多关于php字符前加上反斜杠,包括 单引号、双引号、反斜的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did30789