လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> str_repeat

str_repeat

string ကိုပြန်လုပ်ပါ
အမည်:str_repeat
အမျိုးအစား:ကြိုး
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:ကြိမ်အကြိမ်အရေအတွက်အဖြစ် string ကိုပြန်လုပ်ပါ။

နမူနာ

"Shanghai" string ကိုထပ်ခါတလဲလဲလုပ်ပါ။

 <span class="token php language-php"><span class="token delimiter important"><? PHP</span>
<span class="token keyword">Echo</span> <span class="token function">Strow_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>

သင်ကိုယ်တိုင်စမ်းကြည့်ပါ

သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • output ကို format ချ string ကို printf

    printf

    outputကိုformatချstr
  • တစ်ရှုထောင်ခင်းကျင်းတစ် ဦး string ကိုသို့တစ်ရှုထောင်ခင်းကျင်း၏တန်ဖိုးကိုပြောင်းပါ implode

    implode

    တစ်ရှုထောင်ခင်းကျင်း
  • ဒီဂျစ်တယ် format အချက်အလက်ကိုရယူပါ localeconv

    localeconv

    ဒီဂျစ်တယ်formatအချက်
  • uuencode encoded string ကို decode convert_uudecode

    convert_uudecode

    uuencodeencodedstrin
  • strings အတွက် string အတွက်အက္ခရာများအားလုံးတည်ရှိရာအက်ခရာအားလုံးတည်ရှိရာပထမ ဦး ဆုံးအလွှာ၏အရှည်ကိုတွက်ချက် strspn

    strspn

    stringsအတွက်stringအတ
  • တစ်ထောင် sinkator အတွက်နံပါတ် format number_format

    number_format

    တစ်ထောင်sinkatorအတွက
  • str_replace ၏ဖြစ်ရပ်မှန် - အာရုံမခံစားနိုင်သောဗားရှင်း str_ireplace

    str_ireplace

    str_replace၏ဖြစ်ရပ်မ
  • အထူးအက္ခရာများကို HTML အဖွဲ့အစည်းများသို့ပြောင်းပါ htmlspecialchars

    htmlspecialchars

    အထူးအက္ခရာများကိုHTM
လူကြိုက်များသော ဆောင်းပါးများ