pg_escape_string

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

pg_escape_string 转义 text/char 类型的字符串

说明

pg_escape_string ( string $data ) : string

pg_escape_string() 转义 text/char 数据类型的字符串,返回转义后的字符串。建议用此函数替代 addslashes()

Note:

本函数需要 PostgreSQL 7.2 或以上版本。

参见 pg_escape_bytea()

相关文章
php 字符串 函数 以 c 语言风格使用反斜线转义字符串中的字符php gd 和图像处理 函数 取得 getimagesize,exif read data,exif thumbnail,exif imagetype 所返回的图像类型的 mime 类型php variable handling 函数 检测变量是否为数字或数字字符串php 字符串 函数 使一个字符串的第一个字符小写php 多字节字符串 函数 转换一个或多个变量的字符编码php 多字节字符串 函数 set start point of next regular expression matchphp mysql 函数 转义一个字符串用于 mysql queryphp mysql 函数 转义 sql 语句中使用的字符串中的特殊字符,并考虑到连接的当前字符集php postgresql 函数 转义 bytea 类型的二进制数据php postgresql 函数 escape a identifier for insertion into a text fieldphp postgresql 函数 escape a literal for insertion into a text fieldphp postgresql 函数 转义 text/char 类型的字符串php postgresql 函数 返回相应字段的类型名称php postgresql 函数 向 postgresql 后端发送以 null 结尾的字符串php postgresql 函数 submits a command to the server and waits for the result with the ability to pass parameters separately from the sql command textphp postgresql 函数 取消 bytea 类型中的字符串转义php 字符串 函数 将字符转换为 html 转义字符php 字符串 函数 转义元字符集php 字符串 函数 反引用一个使用 addcslashes 转义的字符串php xml rpc 函数 为一个 php 字符串值设置 xmlrpc 的类型、base64 或日期时间
关注编程学问公众号