PHP 8.5.0 RC 2 available for testing

MongoDB\BSON\Binary::getData

(mongodb >=1.0.0)

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

่ชฌๆ˜Ž

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

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

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

ๆˆปใ‚Šๅ€ค

Returns the Binary's data.

ใ‚จใƒฉใƒผ / ไพ‹ๅค–

ไพ‹

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

<?php

$binary
= new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC);
var_dump($binary->getData());

?>

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

string(3) "foo"

ๅ‚่€ƒ

๏ผ‹add a note

User Contributed Notes

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