/2.0/Tests/@PHP/standard/strings/str_repeat.php
PHP | 10 lines | 10 code | 0 blank | 0 comment | 1 complexity | 655f85147fda3b427320c038bbb5c998 MD5 | raw file
Possible License(s): CPL-1.0, GPL-2.0, CC-BY-SA-3.0, MPL-2.0-no-copyleft-exception, Apache-2.0
- [expect php]
- [file]
- <?php
- $input = array('a', 'foo', 'barbazbax');
- foreach($input AS $i) {
- for($n=0; $n<5; $n++) {
- echo str_repeat($i, $n)."\n";
- }
- }
- ?>