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 字符串 函数 将逻辑顺序希伯来文(logical hebrew)转换为视觉顺序希伯来文(visual hebrew)php variable handling 函数 检测变量是否为资源类型php 多字节字符串 函数 设置/获取 字符编码的检测顺序php 多字节字符串 函数 regular expression match ignoring case with multibyte supportphp 多字节字符串 函数 获取字符的一部分php 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 或日期时间
关注编程学问公众号