<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # PHP explode() 函數 ## 定義和用法 explode() 函數把字符串分割為數組。 ### 語法 ``` explode(separator,string,limit) ``` | 參數 | 描述 | | --- | --- | | separator | 必需。規定在哪里分割字符串。 | | string | 必需。要分割的字符串。 | | limit | 可選。規定所返回的數組元素的最大數目。 | ### 說明 本函數返回由字符串組成的數組,其中的每個元素都是由 _separator_ 作為邊界點分割出來的子字符串。 _separator_ 參數不能是空字符串。如果 _separator_ 為空字符串(""),explode() 將返回 FALSE。如果 _separator_ 所包含的值在 _string_ 中找不到,那么 explode() 將返回包含 _string_ 中單個元素的數組。 如果設置了 _limit_ 參數,則返回的數組包含最多 _limit_ 個元素,而最后那個元素將包含 _string_ 的剩余部分。 如果 _limit_ 參數是負數,則返回除了最后的 -_limit_ 個元素外的所有元素。此特性是 PHP 5.1.0 中新增的。 ## 提示和注釋 注釋:參數 limit 是在 PHP 4.0.1 中加入的。 注釋:由于歷史原因,雖然 implode() 可以接收兩種參數順序,但是 explode() 不行。你必須保證 _separator_ 參數在 _string_ 參數之前才行。 ## 例子 在本例中,我們將把字符串分割為數組: ``` <?php $str = "Hello world. It's a beautiful day."; print_r (explode(" ",$str)); ?> ``` 輸出: ``` Array ( [0] => Hello [1] => world. [2] => It's [3] => a [4] => beautiful [5] => day. ) ```
                  <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>

                              哎呀哎呀视频在线观看