mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-19 06:16:58 +08:00
36 lines
1.8 KiB
HTML
36 lines
1.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>转义 text/char 类型的字符串</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.pg-escape-string" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">pg_escape_string</h1>
|
|
<p class="verinfo">(PHP 4 >= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">pg_escape_string</span> — <span class="dc-title">
|
|
转义 text/char 类型的字符串
|
|
</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 unknown-seealsp" id="refsect1-function.pg-escape-string-unknown-seealsp">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>pg_escape_string</strong></span>
|
|
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
<span class="function"><strong>pg_escape_string()</strong></span> 转义 text/char 数据类型的字符串,返回转义后的字符串。建议用此函数替代 <span class="function"><a href="addslashes.html" class="function">addslashes()</a></span>。
|
|
</p>
|
|
<blockquote class="note"><p><strong class="note">Note</strong>:
|
|
<p class="para">
|
|
本函数需要 PostgreSQL 7.2 或以上版本。
|
|
</p>
|
|
</p></blockquote>
|
|
<p class="para">
|
|
参见 <span class="function"><a href="pg_escape_bytea.html" class="function">pg_escape_bytea()</a></span>。
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |