function.bson-encode.html
2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!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>Serializes a PHP variable into a BSON string</title>
</head>
<body><div class="manualnavbar" style="text-align: center;">
<div class="prev" style="text-align: left; float: left;"><a href="function.bson-decode.html">bson_decode</a></div>
<div class="next" style="text-align: right; float: right;"><a href="mongo.exceptions.html">Exceptions</a></div>
<div class="up"><a href="ref.mongo.html">Mongo Funktionen</a></div>
<div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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">Serializes a PHP variable into a BSON string</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.bson-encode-description">
<h3 class="title">Beschreibung</h3>
<div class="methodsynopsis dc-description">
<span class="type">string</span> <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>
)</div>
<p class="para rdfs-comment">
This function is very beta and entirely useless for 99% of users. It is only
useful if you're doing something weird, such as writing your own driver on
top of the PHP driver.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.bson-encode-parameters">
<h3 class="title">Parameter-Liste</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">anything</code></dt>
<dd>
<p class="para">
The variable to be serialized.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.bson-encode-returnvalues">
<h3 class="title">Rückgabewerte</h3>
<p class="para">
Returns the serialized string.
</p>
</div>
</div><hr /><div class="manualnavbar" style="text-align: center;">
<div class="prev" style="text-align: left; float: left;"><a href="function.bson-decode.html">bson_decode</a></div>
<div class="next" style="text-align: right; float: right;"><a href="mongo.exceptions.html">Exceptions</a></div>
<div class="up"><a href="ref.mongo.html">Mongo Funktionen</a></div>
<div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>