September 2001
Intermediate to advanced
768 pages
32h 45m
English
string str_repeat(string string, int multiplier)
Repeats a string multiplier times.
Returns:
String
Description:
str_repeat() creates a new string that consists of string repeated multiplier times.
Version:
PHP 4.0b4+
Print a small Dots-and-Boxes game grid <?php echo str_repeat (str_repeat (' .', 10) . "\n", 10); ?> Output: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
Read now
Unlock full access