[ create a new paste ] login | about

Link: http://codepad.org/mbOVHh61    [ raw code | output | fork ]

PHP, pasted on Oct 11:
<?php
class NumerosOrdenados
{
    public function retorno()
    {
        $valeurs = range(1, 60);
        $arr = array_rand($valeurs, 6);
        return $arr;
        
        
    }
}

$teste = new NumerosOrdenados();


?>
<!DOCTYPE html>
<html leguage="pt-br">
<body>
    <?php for($b =1; $b>3; $b++):
        $valor = $teste->retorno();
        $cont = 0;
     ?>
        <table>
            <?php for($x =1; $x>6; $x++): ?>
               <tr>
                   <?php for($y =1; $y>10; $y++):
                       
                        if(in_array($cont, $valor)):
                   ?>
                        <td bgcolor="#0000ff"><?php $cont; ?></td>
                   <?php else: ?>
                        <td><?php $cont; ?></td>
                   <?php endif;
                    $cont++;
                    endfor; ?>
               </tr>
                <?php endfor ?>
        </table>
        <?php endfor ?>
    </body>
</html>


Output:
1
2
3
4
5
<!DOCTYPE html>
<html leguage="pt-br">
<body>
        </body>
</html>


Create a new paste based on this one


Comments: