I'm have a problem with using this code:
<?php
for($i=0;$i<=10;$i++){
?>
<p><?php echo $i ?></p>
<?php
}
?>
and this code:
<?php
for($i=0;$i<=10;$i++){
echo'<p>'.$i.'</p>';
}
?>
which is better php code when you need to use html tag inside your php code?
Aucun commentaire:
Enregistrer un commentaire