1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        MongoDB PHP DriverMongoDB 的 PHP 驅(qū)動(dòng)包

        聯(lián)合創(chuàng)作 · 2023-09-30 19:16

        mongo-php-driver 是 MongoDB 御用的 PHP 驅(qū)動(dòng)包。

        示例代碼:

        <?php

        // connect
        $m = new Mongo();

        // select a database
        $db $m->comedy;

        // select a collection (analogous to a relational database's table)
        $collection $db->cartoons;

        // add a record
        $obj = array( "title" => "Calvin and Hobbes""author" => "Bill Watterson" );
        $collection->insert($obj);

        // add another record, with a different "shape"
        $obj = array( "title" => "XKCD""online" => true );
        $collection->insert($obj);

        // find everything in the collection
        $cursor $collection->find();

        // iterate through the results
        foreach ($cursor as $obj) {
            echo 
        $obj["title"] . "\n";
        }


        ?>

        瀏覽 15
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            91精品在线免费观看 | 欧美高潮在线观看 | 公车上疯狂高潮呻吟摸揉 | 伊人网视频在线观看 | 91亚洲电影 | 影音先锋av在线电影 | 婷婷丁香五月天操逼网 | 黄色毛片在线免费观看 | 女人下身被添全过A片一级 | 亚洲国产手机在线 |