quotemeta Quote meta characters php函数


quotemeta

(PHP 4, PHP 5)

quotemetaQuote meta characters

说明

string quotemeta ( string $str )

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

参数

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 转义的字符串
  • preg_match() - 执行一个正则表达式匹配
  • preg_quote() - 转义正则表达式字符



相关阅读:
rad2deg 将弧度数转换为相应的角度数
rand 产生一个随机整数
range 建立一个包含指定范围单元的数组
rawurldecode 对已编码的 URL 字符串进行解码
rawurlencode 按照 RFC 1738 对 URL 进行编码
readdir 从目录句柄中读取条目
readfile 输出一个文件
readgzfile Output a gz-file
readline Reads a line
readline_add_history Adds a line to the history
readline_callback_handler_install Initializes the readline callback interface and terminal, prints the prompt and returns immediately
readline_callback_handler_remove Removes a previously installed callback handler and restores terminal settings
readline_callback_read_char Reads a character and informs the readline callback interface when a line is received
readline_clear_history Clears the history
快速导航

Copyright © 2016 phpStudy |