Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $inicial = 1;
- $final = 1000;
- $valores = array();
- for($a = $inicial; $a <= $final; $a++){
- for($_a = 1; $_a <= 3; $_a++){
- $_str[] = $a;
- }
- }
- $string = implode("", $_str);
- $len = strlen($string);
- $i = 0;
- while($i < $len){
- $campo = @$_str[$i];
- $multiplo = (($i % 5) == 0 ? true : false);
- echo '<input type="text" name="rs" value="'.$campo.'">';
- if($multiplo){
- echo '<br />';
- }
- $i++;
- }
Add Comment
Please, Sign In to add comment