<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之旅 廣告
                # 字符串助手函數 ### [](https://octobercms.com/docs/services/helpers#strings)弦樂 #### [](https://octobercms.com/docs/services/helpers#method-camel-case)`camel_case()` 該`camel_case`函數將給定的字符串轉換為`camelCase`: ~~~ $camel = camel_case('foo_bar'); // fooBar ~~~ #### [](https://octobercms.com/docs/services/helpers#method-class-basename)`class_basename()` 該`class_basename`收益與類的命名空間中的給定類的類名稱中刪除: ~~~ $class = class_basename('Foo\Bar\Baz'); // Baz ~~~ #### [](https://octobercms.com/docs/services/helpers#method-e)`e()` 該`e`函數`htmlentities`在給定的字符串上運行: ~~~ echo e('<html>foo</html>'); // &lt;html&gt;foo&lt;/html&gt; ~~~ #### [](https://octobercms.com/docs/services/helpers#method-ends-with)`ends_with()` 該`ends_with`函數確定給定的字符串是否以給定的值結尾: ~~~ $value = ends_with('This is my name', 'name'); // true ~~~ #### [](https://octobercms.com/docs/services/helpers#method-snake-case)`snake_case()` 該`snake_case`函數將給定的字符串轉換為`snake_case`: ~~~ $snake = snake_case('fooBar'); // foo_bar ~~~ #### [](https://octobercms.com/docs/services/helpers#method-str-limit)`str_limit()` 該`str_limit`函數限制字符串中的字符數。該函數將字符串作為第一個參數,并將最大字符數作為第二個參數: ~~~ $value = str_limit('The CMS platform that gets back to basics.', 6); // The CMS... ~~~ #### [](https://octobercms.com/docs/services/helpers#method-starts-with)`starts_with()` 該`starts_with`函數確定給定的字符串是否以給定的值開頭: ~~~ $value = starts_with('The cow goes moo', 'The'); // true ~~~ #### [](https://octobercms.com/docs/services/helpers#method-str-contains)`str_contains()` 該`str_contains`函數確定給定的字符串是否包含給定的值: ~~~ $value = str_contains('The bird goes tweet', 'bird'); // true ~~~ #### [](https://octobercms.com/docs/services/helpers#method-str-finish)`str_finish()` 該`str_finish`函數將給定值的單個實例添加到字符串中: ~~~ $string = str_finish('this/string', '/'); // this/string/ ~~~ #### [](https://octobercms.com/docs/services/helpers#method-str-is)`str_is()` 該`str_is`函數確定給定的字符串是否匹配給定的模式。星號可用于表示通配符: ~~~ $value = str_is('foo*', 'foobar'); // true $value = str_is('baz*', 'foobar'); // false ~~~ #### [](https://octobercms.com/docs/services/helpers#method-str-plural)`str_plural()` 該`str_plural`函數將字符串轉換為其復數形式。此功能目前僅支持英語: ~~~ $plural = str_plural('car'); // cars $plural = str_plural('child'); // children ~~~ #### [](https://octobercms.com/docs/services/helpers#method-str-random)`str_random()` 該`str_random`函數生成指定長度的隨機字符串: ~~~ $string = str_random(40); ~~~ #### [](https://octobercms.com/docs/services/helpers#method-str-singular)`str_singular()` 該`str_singular`函數將字符串轉換為單數形式。此功能目前僅支持英語: ~~~ $singular = str_singular('cars'); // car ~~~ #### [](https://octobercms.com/docs/services/helpers#method-str-slug)`str_slug()` 該`str_slug`函數從給定的字符串生成URL友好的“ slug”: ~~~ $title = str_slug("October CMS", "-"); // october-cms ~~~ #### [](https://octobercms.com/docs/services/helpers#method-studly-case)`studly_case()` 該`studly_case`函數將給定的字符串轉換為`StudlyCase`: ~~~ $value = studly_case('foo_bar'); // FooBar ~~~ #### [](https://octobercms.com/docs/services/helpers#method-trans)`trans()` 該`trans`函數使用您的[本地化文件](https://octobercms.com/docs/plugin/localization)翻譯給定的語言行: ~~~ echo trans('validation.required'): ~~~ #### [](https://octobercms.com/docs/services/helpers#method-trans-choice)`trans_choice()` 該`trans_choice`函數使用拐點翻譯給定的語言行: ~~~ $value = trans_choice('foo.bar', $count); ~~~
                  <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>

                              哎呀哎呀视频在线观看