Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $x = 1;
- $y = 5;
- for($i = $x; $i < $y; $i++){
- //Função str_repeat feita na mão.
- for($a = 0; $a < 3; $a++){
- $str[] = $i;
- }
- }
- $str = implode("", $str);
- $count = strlen($str);
- for($i = 1; $i <= $count; $i++){
- $iVal = ($i - 1);
- $stringPos = $str[$iVal];
- $multiplo = (($i % 5) == 0);
- echo $stringPos;
- if($multiplo){
- echo '<br />';
- }
- }
Add Comment
Please, Sign In to add comment