現在の位置: ホーム> 関数カテゴリ一覧> str_repeat

str_repeat

文字列を繰り返します
名前:str_repeat
カテゴリ:
対応言語:php
一言説明:指定された回数として文字列を繰り返します。

文字列「上海」を5回繰り返します:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">Echo</span> <span class="token function">Str_repeat</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"Shanghai"</span> <span class="token punctuation">、</span> <span class="token number">5</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

自分で試してみてください

類似の関数
  • デジタル形式の情報を取得します localeconv

    localeconv

    デジタル形式の情報を取得します
  • 症例感受性STRSTR stristr

    stristr

    症例感受性STRSTR
  • 文字列を小さなチャンクに分割します chunk_split

    chunk_split

    文字列を小さなチャンクに分割します
  • ナチュラルオーダーアルゴリズムを使用して文字列を比較する(ケースの非感受性) strnatcasecmp

    strnatcasecmp

    ナチュラルオーダーアルゴリズムを使用して
  • タグ分割文字列 strtok

    strtok

    タグ分割文字列
  • 文字列を出力します print

    print

    文字列を出力します
  • 文字列の先頭にあるいくつかの文字のバイナリ安全な比較 strncmp

    strncmp

    文字列の先頭にあるいくつかの文字のバイナ
  • 文字列の一部を返します substr

    substr

    文字列の一部を返します
人気記事(にんききじ)