วันอาทิตย์ที่ 11 พฤษภาคม พ.ศ. 2557

20:13
ฟังก์ชัน str_repeat()
สร้างสตริงจากตัวอักษรหรือคำ ด้วยฟังก์ชัน str_repeat()

 
รูปแบบ
str_repeat(string , repeat)
string คือ ตัวอักษรหรือคำที่ต้องการ

repeat คือ ความยาวของสตริงที่ต้องการ


ตัวอย่าง
<?php

$str = str_repeat(".",20);
echo $str;

?>

ผลลัพธ์
....................

0 ความคิดเห็น:

แสดงความคิดเห็น

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.