<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 簡介 Illuminate\Support\Collection 類提供一個流暢、方便的封裝來操作數組數據。舉個例子,查看下面的代碼。我們將會使用 collect 輔助方法來用數組建立一個新的集合實例: ~~~ $collection = collect(['taylor', 'abigail', null])->map(function($name) { return strtoupper($name); }) ->reject(function($name) { return empty($name); }); ~~~ 可以看到,Collection 類允許你鏈式調用它的方法對背后的數組執行流暢的映射和歸納。一般說來,每一個 Collection 的方法都返回一個全新的 Collection 實例。為了更深一步的了解,請繼續閱讀! # 基本用法 ## 建立集合 如上述,collect 輔助方法將會用給定的數組返回一個新的 Illuminate\Support\Collection 實例。你也可以在 Collection 類上使用 make 命令: ~~~ $collection = collect([1, 2, 3]); $collection = Collection::make([1, 2, 3]); ~~~ 當然,Eloquent 的對象集合總是以 Collection 實例返回;然而,你可以在應用程序的任何地方方便的使用 Collection 類。 ## 探索集合 作為列出集合可以用的所有方法 (有很多) 的替代,請查看 類的 API 文檔!
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看