Code:
<?php $url_0 = "http://www.reaser.de/"; $url_1 = "http://www.google.de/"; $anzahl = 2; $i = 0; while($i < $anzahl) { ?> <?php echo $url_$i?> <? $i++; } ?>
<?php $url_0 = "http://www.reaser.de/"; $url_1 = "http://www.google.de/"; $anzahl = 2; $i = 0; while($i < $anzahl) { ?> <?php echo $url_$i?> <? $i++; } ?>
<?php $url_0 = "http://www.reaser.de/"; $url_1 = "http://www.google.de/"; $anzahl = 2; $i = 0; while($i < $anzahl) { ?> <?php echo $url.$i?> <? $i++; } ?>
$arr = array("http://www.google.de/", "http://www.reaser.de/"); $anzahl = count($arr); $i=0; while($i<$anzahl) { echo $arr[$i]; $i++; }
<?php $_url = array("http://www.google.de", "http://www.ebay.de"); $anzahl = count($_url); for ( $i=0; $i<$anzahl;$i++) { echo $_url[$i] . " "; } ?>
Kommentar