久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <tfoot id='uKhu7'></tfoot>
      <i id='uKhu7'><tr id='uKhu7'><dt id='uKhu7'><q id='uKhu7'><span id='uKhu7'><b id='uKhu7'><form id='uKhu7'><ins id='uKhu7'></ins><ul id='uKhu7'></ul><sub id='uKhu7'></sub></form><legend id='uKhu7'></legend><bdo id='uKhu7'><pre id='uKhu7'><center id='uKhu7'></center></pre></bdo></b><th id='uKhu7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uKhu7'><tfoot id='uKhu7'></tfoot><dl id='uKhu7'><fieldset id='uKhu7'></fieldset></dl></div>
    2. <small id='uKhu7'></small><noframes id='uKhu7'>

      • <bdo id='uKhu7'></bdo><ul id='uKhu7'></ul>
      <legend id='uKhu7'><style id='uKhu7'><dir id='uKhu7'><q id='uKhu7'></q></dir></style></legend>

        Eloquent 只獲取一列作為數(shù)組

        Eloquent get only one column as an array(Eloquent 只獲取一列作為數(shù)組)
          <tbody id='jMIup'></tbody>
          <legend id='jMIup'><style id='jMIup'><dir id='jMIup'><q id='jMIup'></q></dir></style></legend><tfoot id='jMIup'></tfoot>

          1. <i id='jMIup'><tr id='jMIup'><dt id='jMIup'><q id='jMIup'><span id='jMIup'><b id='jMIup'><form id='jMIup'><ins id='jMIup'></ins><ul id='jMIup'></ul><sub id='jMIup'></sub></form><legend id='jMIup'></legend><bdo id='jMIup'><pre id='jMIup'><center id='jMIup'></center></pre></bdo></b><th id='jMIup'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jMIup'><tfoot id='jMIup'></tfoot><dl id='jMIup'><fieldset id='jMIup'></fieldset></dl></div>

                <small id='jMIup'></small><noframes id='jMIup'>

                  <bdo id='jMIup'></bdo><ul id='jMIup'></ul>
                  本文介紹了Eloquent 只獲取一列作為數(shù)組的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習吧!

                  問題描述

                  如何使用eloquent在laravel 5.2中只獲取一列作為一維數(shù)組?

                  How to get only one column as one dimentional array in laravel 5.2 using eloquent?

                  我已經(jīng)嘗試過:

                  $array = Word_relation::select('word_two')->where('word_one', $word_id)->get()->toArray();
                  

                  但是這個給它作為 2 維數(shù)組,如:

                  but this one gives it as 2 dimentional array like:

                  array(2) {
                        [0]=>
                        array(1) {
                          ["word_one"]=>
                          int(2)
                        }
                        [1]=>
                        array(1) {
                          ["word_one"]=>
                          int(3)
                        }
                      }
                  

                  但我想得到它:

                  array(2) {
                      [0]=>2
                      [1]=>3
                  }
                  

                  推薦答案

                  您可以使用 采摘方法:

                  You can use the pluck method:

                  Word_relation::where('word_one', $word_id)->pluck('word_two')->toArray();
                  

                  有關(guān)可用于集合的方法的更多信息,您可以查看 Laravel 文檔.

                  For more info on what methods are available for using with collection, you can you can check out the Laravel Documentation.

                  這篇關(guān)于Eloquent 只獲取一列作為數(shù)組的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動程序)
                • <legend id='EWDDS'><style id='EWDDS'><dir id='EWDDS'><q id='EWDDS'></q></dir></style></legend>

                  <small id='EWDDS'></small><noframes id='EWDDS'>

                  <tfoot id='EWDDS'></tfoot>

                      <tbody id='EWDDS'></tbody>
                      <bdo id='EWDDS'></bdo><ul id='EWDDS'></ul>
                          • <i id='EWDDS'><tr id='EWDDS'><dt id='EWDDS'><q id='EWDDS'><span id='EWDDS'><b id='EWDDS'><form id='EWDDS'><ins id='EWDDS'></ins><ul id='EWDDS'></ul><sub id='EWDDS'></sub></form><legend id='EWDDS'></legend><bdo id='EWDDS'><pre id='EWDDS'><center id='EWDDS'></center></pre></bdo></b><th id='EWDDS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EWDDS'><tfoot id='EWDDS'></tfoot><dl id='EWDDS'><fieldset id='EWDDS'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 天天躁天天操 | 1级黄色大片 | 日韩欧美天堂 | 亚洲精品国产成人 | 成人国产精品视频 | 中文字幕亚洲区一区二 | a黄在线观看 | 精品视频久久久 | 中文字幕av中文字幕 | 毛片在线免费播放 | 久久综合一区二区 | www.国产| 久久av资源网 | 二区精品 | 亚洲午夜精品一区二区三区他趣 | 亚洲国产一区二区三区在线观看 | 欧美a在线| 亚洲男人的天堂网站 | 亚洲永久精品国产 | 九九精品影院 | 亚洲深夜福利 | 欧美一卡二卡在线观看 | 亚洲国产精品久久久 | 青草青草久热精品视频在线观看 | 国产精品爱久久久久久久 | 中文字幕 国产精品 | 欧美黑人狂野猛交老妇 | 日本在线网站 | 免费日韩av网站 | 国产亚洲精品精品国产亚洲综合 | 三级成人在线 | 日韩性生活网 | 亚洲精品片| 一区二区成人 | 美女久久| 国产日韩欧美电影 | 欧美精品一区二区三区蜜臀 | 国产精品片 | 香蕉国产在线视频 | 日本三级做a全过程在线观看 | 真人一级毛片 |