looping through numbered variables
Posted: Sun Apr 04, 2004 10:27 am
how can I output these variables in a for loop?
...not like this - but maybe not far off...
...not like this - but maybe not far off...
Code: Select all
<?php
$c0=1;
$c1=1;
$c2=0;
$c3=0;
$c4=1;
$c5=1;
for ($x=0;$x<6;$x++) {
print $c{$x};
}
?>