mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
60 lines
1.9 KiB
HTML
60 lines
1.9 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>序列化一个 PHP 变量为 BSON 字符串</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.bson-encode" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">bson_encode</h1>
|
|
<p class="verinfo">(PECL mongo >=1.0.1)</p><p class="refpurpose"><span class="refname">bson_encode</span> — <span class="dc-title">序列化一个 PHP 变量为 BSON 字符串</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.bson-encode-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>bson_encode</strong></span>
|
|
( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$anything</code></span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
这个函数非常不正式,对 99% 的用户是完全没用的。
|
|
仅仅在做着一些不寻常的事的情况下有用,比如在 PHP 驱动的基础上编写自己的驱动。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.bson-encode-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">anything</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
要序列化的变量。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.bson-encode-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
返回序列化后的字符串。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |