PHP 8.5.0 Beta 3 available for testing

RowResult::__construct

(No version information available, might only be in Git)

RowResult::__construct โ€” RowResult ใฎใ‚ณใƒณใ‚นใƒˆใƒฉใ‚ฏใ‚ฟ

่ชฌๆ˜Ž

private mysql_xdevapi\RowResult::__construct()

ใƒ‡ใƒผใ‚ฟใƒ™ใƒผใ‚นใธใฎๅ•ใ„ๅˆใ‚ใ›ใ‹ใ‚‰ๅพ—ใ‚‰ใ‚Œใ‚‹็ตๆžœใ‚ปใƒƒใƒˆใ‚’่กจ็พใ—ใพใ™ใ€‚

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

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

ไพ‹

ไพ‹1 mysql_xdevapi\RowResult::__construct() ใฎไพ‹

<?php
$session
= mysql_xdevapi\getSession("mysqlx://user:password@localhost");

$schema = $session->getSchema("addressbook");
$table = $schema->getTable("names");

$row = $table->select('name', 'age')->where('age > 18')->execute()->fetchAll();

print_r($row);

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

Array
(
    [0] => Array
        (
            [name] => John
            [age] => 42
        )
    [1] => Array
        (
            [name] => Sam
            [age] => 33
        )
)
๏ผ‹add a note

User Contributed Notes

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