PHP str_repeat() လုပ်ဆောင်ချက်
ဥပမာ
"Wow" 13 ကြိမ်ပြန်လုပ်ပါ-
<?php
echo str_repeat("Wow",13);
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
str_repeat() လုပ်ဆောင်ချက်သည် သတ်မှတ်ထားသော အကြိမ်အရေအတွက်ကို string တစ်ခုကို ပြန်လုပ်သည်။
အထားအသို
str_repeat(string,repeat)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
string | Required. Specifies the string to repeat |
repeat | Required. Specifies the number of times the string will be repeated. Must be greater or equal to 0 |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ထပ်ခါတလဲလဲ စာတန်းကို ပြန်ပေးသည်။ |
---|---|
PHP ဗားရှင်း- | 4+ |
❮ PHP String အကိုးအကား