現在の位置: ホーム> 関数カテゴリ一覧> 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>

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

類似の関数
  • 出力フォーマットされた文字列 printf

    printf

    出力フォーマットされた文字列
  • フォーマットされた文字列を返します sprintf

    sprintf

    フォーマットされた文字列を返します
  • 別の文字列を使用して文字列を長さに埋める str_pad

    str_pad

    別の文字列を使用して文字列を長さに埋める
  • htmlspecialchars()およびhtmlentities()を使用した後、変換テーブルを返します get_html_translation_table

    get_html_translation_table

    htmlspecialchars()およ
  • 論理 -  hebrewをビジュアルヘブライ語に変換し、Newlinesを変換します hebrevc

    hebrevc

    論理-hebrewをビジュアルヘブライ語
  • 文字列のsoundexキーを計算します soundex

    soundex

    文字列のsoundexキーを計算します
  • 文字列の最初と端からスペース(または他の文字)を削除します trim

    trim

    文字列の最初と端からスペース(または他の
  • 文字列を配列に変換します str_split

    str_split

    文字列を配列に変換します
人気記事(にんききじ)