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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Inflector 輔助函數 Inflector 輔助函數文件包含了一些幫助你將單詞轉換為單復數或駝峰格式等等的函數。 [TOC=2,3] ## [加載輔助函數](http://codeigniter.org.cn/user_guide/helpers/inflector_helper.html#id3) 該輔助函數通過下面的代碼加載: ~~~ $this->load->helper('inflector'); ~~~ ## [可用函數](http://codeigniter.org.cn/user_guide/helpers/inflector_helper.html#id4) 該輔助函數有下列可用函數: singular($str) 參數: * **$str**?(string) -- Input string 返回: A singular word 返回類型: string 將一個單詞的復數形式變為單數形式。例如: ~~~ echo singular('dogs'); // Prints 'dog' ~~~ plural($str) 參數: * **$str**?(string) -- Input string 返回:A plular word 返回類型: string 將一個單詞的單數形式變為復數形式。例如: ~~~ echo plural('dog'); // Prints 'dogs' ~~~ camelize($str) 參數: * **$str**?(string) -- Input string 返回: Camelized string 返回類型: string 將一個以空格或下劃線分隔的單詞轉換為駝峰格式。例如: ~~~ echo camelize('my_dog_spot'); // Prints 'myDogSpot' ~~~ underscore($str) 參數: * **$str**?(string) -- Input string 返回: String containing underscores instead of spaces 返回類型: string 將以空格分隔的多個單詞轉換為下劃線分隔格式。例如: ~~~ echo underscore('my dog spot'); // Prints 'my_dog_spot' ~~~ humanize($str[,?$separator = '_']) 參數: * **$str**?(string) -- Input string * **$separator**?(string) -- Input separator 返回: Humanized string 返回類型: string 將以下劃線分隔的多個單詞轉換為以空格分隔,并且每個單詞以大寫開頭。例如: ~~~ echo humanize('my_dog_spot'); // Prints 'My Dog Spot' ~~~ 如果單詞是以連接符分割的,第二個參數傳入連接符: ~~~ echo humanize('my-dog-spot', '-'); // Prints 'My Dog Spot' ~~~ is_countable($word) 參數: * **$word**?(string) -- Input string 返回: TRUE if the word is countable or FALSE if not 返回類型: bool 判斷某個單詞是否有復數形式。例如: ~~~ is_countable('equipment'); // Returns FALSE ~~~
                  <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>

                              哎呀哎呀视频在线观看