Advertisement
wandrake

Untitled

Sep 22nd, 2013
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2.     $culy = array('aahahah', 'bbhbhbb', 'cchchchc');
  3.     // Esempio 1 - questo è un commento php
  4.     foreach ($culy as $c) {
  5.         echo '<h3>' . $c . '</h3><br/>';
  6.     }
  7.  
  8.     // Esempio 2 - rifai la stessa cosa senza echo
  9.     foreach ($culy as $c) {
  10. ?>
  11.     <h3><?= $c ?></h3><br/>
  12. <?php        
  13.     }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement