PHP 8.5.0 RC 2 available for testing

MongoDB\BSON\Binary::__toString

(mongodb >=1.2.0)

MongoDB\BSON\Binary::__toString โ€” Returns the Binary's data

่ชฌๆ˜Ž

final public MongoDB\BSON\Binary::__toString(): string

ใ“ใฎใƒกใ‚ฝใƒƒใƒ‰ใฏๆฌกใฎใƒกใ‚ฝใƒƒใƒ‰ใฎใ‚จใ‚คใƒชใ‚ขใ‚นใงใ™ใ€‚ MongoDB\BSON\Binary::getData().

ใƒ‘ใƒฉใƒกใƒผใ‚ฟ

ใ“ใฎ้–ขๆ•ฐใซใฏใƒ‘ใƒฉใƒกใƒผใ‚ฟใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚

ๆˆปใ‚Šๅ€ค

Returns the Binary's data.

ไพ‹

ไพ‹1 MongoDB\BSON\Binary::__toString() example

<?php

var_dump
((string) new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC));

?>

ไธŠใฎไพ‹ใฎๅ‡บๅŠ›ใฏไปฅไธ‹ใจใชใ‚Šใพใ™ใ€‚

string(3) "foo"

ๅ‚่€ƒ

๏ผ‹add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top