Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
函数 »
« MongoDB\Driver\WriteResult::isAcknowledged
PHP 手册
函数参考
数据库扩展
针对各数据库系统对应的扩展
MongoDB
Change language:
English
Chinese (Simplified)
Other
MongoDB BSON Classes and Functions
函数
MongoDB\BSON\fromJSON
— Returns the BSON representation of a JSON value
MongoDB\BSON\fromPHP
— Returns the BSON representation of a PHP value
MongoDB\BSON\toCanonicalExtendedJSON
— Returns the Canonical Extended JSON representation of a BSON value
MongoDB\BSON\toJSON
— Returns the Legacy Extended JSON representation of a BSON value
MongoDB\BSON\toPHP
— Returns the PHP representation of a BSON value
MongoDB\BSON\toRelaxedExtendedJSON
— Returns the Relaxed Extended JSON representation of a BSON value
MongoDB\BSON\Document
— The MongoDB\BSON\Document class
MongoDB\BSON\Document::__construct
— Construct a new BSON document (unused)
MongoDB\BSON\Document::fromBSON
— Construct a new document instance from a BSON string
MongoDB\BSON\Document::fromJSON
— Construct a new document instance from a JSON string
MongoDB\BSON\Document::fromPHP
— Construct a new document instance from PHP data
MongoDB\BSON\Document::get
— Returns the value of a key in the document
MongoDB\BSON\Document::getIterator
— Returns an iterator for the BSON document
MongoDB\BSON\Document::has
— Returns whether a key is present in the document
MongoDB\BSON\Document::offsetExists
— Returns whether a key is present in the document
MongoDB\BSON\Document::offsetGet
— Returns the value of a key in the document
MongoDB\BSON\Document::offsetSet
— Implementation of ArrayAccess
MongoDB\BSON\Document::offsetUnset
— Implementation of ArrayAccess
MongoDB\BSON\Document::serialize
— Serialize a Document
MongoDB\BSON\Document::toCanonicalExtendedJSON
— Returns the Canonical Extended JSON representation of the BSON document
MongoDB\BSON\Document::toPHP
— Returns the PHP representation of the BSON document
MongoDB\BSON\Document::toRelaxedExtendedJSON
— Returns the Relaxed Extended JSON representation of the BSON document
MongoDB\BSON\Document::__toString
— Returns the string representation of this BSON Document
MongoDB\BSON\Document::unserialize
— Unserialize a BSON document
MongoDB\BSON\PackedArray
— The MongoDB\BSON\PackedArray class
MongoDB\BSON\PackedArray::__construct
— Construct a new BSON array (unused)
MongoDB\BSON\PackedArray::fromPHP
— Construct a new BSON array instance from PHP data
MongoDB\BSON\PackedArray::get
— Returns the value of an index in the array
MongoDB\BSON\PackedArray::getIterator
— Returns an iterator for the BSON array
MongoDB\BSON\PackedArray::has
— Returns whether a index is present in the array
MongoDB\BSON\PackedArray::offsetExists
— Returns whether a index is present in the array
MongoDB\BSON\PackedArray::offsetGet
— Returns the value of an index in the array
MongoDB\BSON\PackedArray::offsetSet
— Implementation of ArrayAccess
MongoDB\BSON\PackedArray::offsetUnset
— Implementation of ArrayAccess
MongoDB\BSON\PackedArray::serialize
— Serialize a BSON array
MongoDB\BSON\PackedArray::toPHP
— Returns the PHP representation of the BSON array
MongoDB\BSON\PackedArray::__toString
— Returns the string representation of this BSON array
MongoDB\BSON\PackedArray::unserialize
— Unserialize a BSON array
MongoDB\BSON\Iterator
— The MongoDB\BSON\Iterator class
MongoDB\BSON\Iterator::__construct
— Construct a new BSON iterator (unused)
MongoDB\BSON\Iterator::current
— Returns the current element
MongoDB\BSON\Iterator::key
— Returns the key of the current element
MongoDB\BSON\Iterator::next
— Advances the iterator to next element
MongoDB\BSON\Iterator::rewind
— Rewinds the Iterator to the first element
MongoDB\BSON\Iterator::valid
— Checks if current position is valid
MongoDB\BSON\Binary
— The MongoDB\BSON\Binary class
MongoDB\BSON\Binary::__construct
— Construct a new Binary
MongoDB\BSON\Binary::getData
— Returns the Binary's data
MongoDB\BSON\Binary::getType
— Returns the Binary's type
MongoDB\BSON\Binary::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\Binary::serialize
— Serialize a Binary
MongoDB\BSON\Binary::__toString
— Returns the Binary's data
MongoDB\BSON\Binary::unserialize
— Unserialize a Binary
MongoDB\BSON\Decimal128
— The MongoDB\BSON\Decimal128 class
MongoDB\BSON\Decimal128::__construct
— Construct a new Decimal128
MongoDB\BSON\Decimal128::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\Decimal128::serialize
— Serialize a Decimal128
MongoDB\BSON\Decimal128::__toString
— Returns the string representation of this Decimal128
MongoDB\BSON\Decimal128::unserialize
— Unserialize a Decimal128
MongoDB\BSON\Javascript
— The MongoDB\BSON\Javascript class
MongoDB\BSON\Javascript::__construct
— Construct a new Javascript
MongoDB\BSON\Javascript::getCode
— Returns the Javascript's code
MongoDB\BSON\Javascript::getScope
— Returns the Javascript's scope document
MongoDB\BSON\Javascript::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\Javascript::serialize
— Serialize a Javascript
MongoDB\BSON\Javascript::__toString
— Returns the Javascript's code
MongoDB\BSON\Javascript::unserialize
— Unserialize a Javascript
MongoDB\BSON\MaxKey
— The MongoDB\BSON\MaxKey class
MongoDB\BSON\MaxKey::__construct
— Construct a new MaxKey
MongoDB\BSON\MaxKey::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\MaxKey::serialize
— Serialize a MaxKey
MongoDB\BSON\MaxKey::unserialize
— Unserialize a MaxKey
MongoDB\BSON\MinKey
— The MongoDB\BSON\MinKey class
MongoDB\BSON\MinKey::__construct
— Construct a new MinKey
MongoDB\BSON\MinKey::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\MinKey::serialize
— Serialize a MinKey
MongoDB\BSON\MinKey::unserialize
— Unserialize a MinKey
MongoDB\BSON\ObjectId
— The MongoDB\BSON\ObjectId class
MongoDB\BSON\ObjectId::__construct
— Construct a new ObjectId
MongoDB\BSON\ObjectId::getTimestamp
— Returns the timestamp component of this ObjectId
MongoDB\BSON\ObjectId::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\ObjectId::serialize
— Serialize an ObjectId
MongoDB\BSON\ObjectId::__toString
— Returns the hexidecimal representation of this ObjectId
MongoDB\BSON\ObjectId::unserialize
— Unserialize an ObjectId
MongoDB\BSON\Regex
— The MongoDB\BSON\Regex class
MongoDB\BSON\Regex::__construct
— Construct a new Regex
MongoDB\BSON\Regex::getFlags
— Returns the Regex's flags
MongoDB\BSON\Regex::getPattern
— Returns the Regex's pattern
MongoDB\BSON\Regex::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\Regex::serialize
— Serialize a Regex
MongoDB\BSON\Regex::__toString
— Returns the string representation of this Regex
MongoDB\BSON\Regex::unserialize
— Unserialize a Regex
MongoDB\BSON\Timestamp
— The MongoDB\BSON\Timestamp class
MongoDB\BSON\Timestamp::__construct
— Construct a new Timestamp
MongoDB\BSON\Timestamp::getIncrement
— Returns the increment component of this Timestamp
MongoDB\BSON\Timestamp::getTimestamp
— Returns the timestamp component of this Timestamp
MongoDB\BSON\Timestamp::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\Timestamp::serialize
— Serialize a Timestamp
MongoDB\BSON\Timestamp::__toString
— Returns the string representation of this Timestamp
MongoDB\BSON\Timestamp::unserialize
— Unserialize a Timestamp
MongoDB\BSON\UTCDateTime
— The MongoDB\BSON\UTCDateTime class
MongoDB\BSON\UTCDateTime::__construct
— Construct a new UTCDateTime
MongoDB\BSON\UTCDateTime::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\UTCDateTime::serialize
— Serialize a UTCDateTime
MongoDB\BSON\UTCDateTime::toDateTime
— Returns the DateTime representation of this UTCDateTime
MongoDB\BSON\UTCDateTime::__toString
— Returns the string representation of this UTCDateTime
MongoDB\BSON\UTCDateTime::unserialize
— Unserialize a UTCDateTime
MongoDB\BSON\Type
— The MongoDB\BSON\Type interface
MongoDB\BSON\Persistable
— The MongoDB\BSON\Persistable interface
MongoDB\BSON\Persistable::bsonSerialize
— Provides an array or document to serialize as BSON
MongoDB\BSON\Serializable
— The MongoDB\BSON\Serializable interface
MongoDB\BSON\Serializable::bsonSerialize
— Provides an array or document to serialize as BSON
MongoDB\BSON\Unserializable
— The MongoDB\BSON\Unserializable interface
MongoDB\BSON\Unserializable::bsonUnserialize
— Constructs the object from a BSON array or document
MongoDB\BSON\BinaryInterface
— The MongoDB\BSON\BinaryInterface interface
MongoDB\BSON\BinaryInterface::getData
— Returns the BinaryInterface's data
MongoDB\BSON\BinaryInterface::getType
— Returns the BinaryInterface's type
MongoDB\BSON\BinaryInterface::__toString
— Returns the BinaryInterface's data
MongoDB\BSON\Decimal128Interface
— The MongoDB\BSON\Decimal128Interface interface
MongoDB\BSON\Decimal128Interface::__toString
— Returns the string representation of this Decimal128Interface
MongoDB\BSON\JavascriptInterface
— The MongoDB\BSON\JavascriptInterface interface
MongoDB\BSON\JavascriptInterface::getCode
— Returns the JavascriptInterface's code
MongoDB\BSON\JavascriptInterface::getScope
— Returns the JavascriptInterface's scope document
MongoDB\BSON\JavascriptInterface::__toString
— Returns the JavascriptInterface's code
MongoDB\BSON\MaxKeyInterface
— The MongoDB\BSON\MaxKeyInterface interface
MongoDB\BSON\MinKeyInterface
— The MongoDB\BSON\MinKeyInterface interface
MongoDB\BSON\ObjectIdInterface
— The MongoDB\BSON\ObjectIdInterface interface
MongoDB\BSON\ObjectIdInterface::getTimestamp
— Returns the timestamp component of this ObjectIdInterface
MongoDB\BSON\ObjectIdInterface::__toString
— Returns the hexidecimal representation of this ObjectIdInterface
MongoDB\BSON\RegexInterface
— The MongoDB\BSON\RegexInterface interface
MongoDB\BSON\RegexInterface::getFlags
— Returns the RegexInterface's flags
MongoDB\BSON\RegexInterface::getPattern
— Returns the RegexInterface's pattern
MongoDB\BSON\RegexInterface::__toString
— Returns the string representation of this RegexInterface
MongoDB\BSON\TimestampInterface
— The MongoDB\BSON\TimestampInterface interface
MongoDB\BSON\TimestampInterface::getIncrement
— Returns the increment component of this TimestampInterface
MongoDB\BSON\TimestampInterface::getTimestamp
— Returns the timestamp component of this TimestampInterface
MongoDB\BSON\TimestampInterface::__toString
— Returns the string representation of this TimestampInterface
MongoDB\BSON\UTCDateTimeInterface
— The MongoDB\BSON\UTCDateTimeInterface interface
MongoDB\BSON\UTCDateTimeInterface::toDateTime
— Returns the DateTime representation of this UTCDateTimeInterface
MongoDB\BSON\UTCDateTimeInterface::__toString
— Returns the string representation of this UTCDateTimeInterface
MongoDB\BSON\DBPointer
— The MongoDB\BSON\DBPointer class (deprecated)
MongoDB\BSON\DBPointer::__construct
— Construct a new DBPointer (unused)
MongoDB\BSON\DBPointer::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\DBPointer::serialize
— Serialize a DBPointer
MongoDB\BSON\DBPointer::__toString
— Returns an empty string
MongoDB\BSON\DBPointer::unserialize
— Unserialize a DBPointer
MongoDB\BSON\Int64
— The MongoDB\BSON\Int64 class
MongoDB\BSON\Int64::__construct
— Construct a new Int64
MongoDB\BSON\Int64::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\Int64::serialize
— Serialize an Int64
MongoDB\BSON\Int64::__toString
— Returns the string representation of this Int64
MongoDB\BSON\Int64::unserialize
— Unserialize an Int64
MongoDB\BSON\Symbol
— The MongoDB\BSON\Symbol class (deprecated)
MongoDB\BSON\Symbol::__construct
— Construct a new Symbol (unused)
MongoDB\BSON\Symbol::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\Symbol::serialize
— Serialize a Symbol
MongoDB\BSON\Symbol::__toString
— Returns the Symbol as a string
MongoDB\BSON\Symbol::unserialize
— Unserialize a Symbol
MongoDB\BSON\Undefined
— The MongoDB\BSON\Undefined class (deprecated)
MongoDB\BSON\Undefined::__construct
— Construct a new Undefined (unused)
MongoDB\BSON\Undefined::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\Undefined::serialize
— Serialize a Undefined
MongoDB\BSON\Undefined::__toString
— Returns an empty string
MongoDB\BSON\Undefined::unserialize
— Unserialize a Undefined
Improve This Page
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.