MongoDB\Driver\ReadPreference::serialize
(mongodb >=1.7.0)
MongoDB\Driver\ReadPreference::serialize — Serialize a ReadPreference
说明
final public MongoDB\Driver\ReadPreference::serialize(): string参数
此函数没有参数。
返回值
Returns the serialized representation of the MongoDB\Driver\ReadPreference.
错误/异常
Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.参见
MongoDB\Driver\ReadPreference::unserialize() - Unserialize a ReadPreference serialize() - 产生一个可存储的值的表示 Serializing ObjectsUser Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/mongodb-driver-readpreference.serialize.php