位置: 编程技术 - 正文

PHP字符串函数quotemeta()的用法(php中字符串函数)

编辑:rootadmin
quotemeta

推荐整理分享PHP字符串函数quotemeta()的用法(php中字符串函数),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:php字符串操作函数,php 字符串函数,php字符串的三种定义方式,在php中,字符串有哪些表示形式,php中字符串函数,php 字符串函数,php字符串的三种定义方式,php字符串包含某个字符串,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4, PHP 5)

quotemeta — Quote meta characters

说明 string quotemeta ( string $str )

Returns a version of str with a backslash character () before every character that is among these: . + * ? [ ^ ] ( $ )

参数 PHP字符串函数quotemeta()的用法(php中字符串函数)

str

The input string.

返回值

Returns the string with meta characters quoted, or FALSE if an empty string is given as str.

注释

Note: 此函数可安全用于二进制对象。

参见

addslashes() - 使用反斜线引用字符串 addcslashes() - 以 C 语言风格使用反斜线转义字符串中的字符 htmlentities() - Convert all applicable characters to HTML entities htmlspecialchars() - Convert special characters to HTML entities nl2br() - 在字符串所有新行之前插入 HTML 换行标记 stripslashes() - 反引用一个引用字符串 stripcslashes() - 反引用一个使用 addcslashes 转义的字符串 ereg() - 正则表达式匹配 preg_quote() - 转义正则表达式字符

PHP字符串函数printf()的用法 printf(PHP4,PHP5)printf输出格式化字符串说明intprintf(string$format[,mixed$args[,mixed$...]])依据format格式参数产生输出。参数formatformat描述信息,请参见sprintf()。args.

PHP字符串函数print()的用法 print(PHP4,PHP5)print输出字符串说明intprint(string$arg)输出arg。print实际上不是一个函数(它是一个语言结构),因此你可以不必使用圆括号来括起它的参数列

PHP字符串函数ord()的用法 ord(PHP4,PHP5)ord返回字符的ASCII码值说明intord(string$string)返回字符串string第一个字符的ASCII码值。该函数是chr()的互补函数。参数string一个字符。返回值返回

本文链接地址:https://www.jiuchutong.com/biancheng/278848.html 转载请保留说明!

上一篇:PHP字符串函数parse_str()的用法(php中字符串函数)

下一篇:PHP字符串函数printf()的用法(php string函数)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络