fork download
  1. <?php
  2. $clientes[0] -> nome = 'Fulano da Tal';
  3. $clientes[0] -> endereco = 'av. das palmeiras';
  4. $clientes[0] -> telefone = '123456';
  5. $clientes[0] -> celular = '7891011';
  6. ?>
  7. <table>
  8. <?php foreach($clientes as $cliente):?>
  9. <tr>
  10. <td><?=$cliente->nome?> </br>
  11. <?=$cliente->endereco?></td>
  12. <td><a href="tel:<?=$cliente->telefone?>"><?=$cliente->telefone?></a>
  13. <a href="tel:<?=$cliente->celular?>"><?=$cliente->celular?></a></td>
  14. </tr>
  15. <?php endforeach;?>
  16. </table>
Success #stdin #stdout #stderr 0.02s 23972KB
stdin
Standard input is empty
stdout
<table>
    <tr>
       <td>Fulano da Tal </br>
          av. das palmeiras</td>
       <td><a href="tel:123456">123456</a>
          <a href="tel:7891011">7891011</a></td>
       </tr>
</table>
stderr
PHP Warning:  Creating default object from empty value in /home/fdrtXW/prog.php on line 2