for example, we can make an array simply by the below method
[code=php]
<?php
$var1 = a;
$var2 = b;
$var3 = c;
$variables = array($var1,$va r2,$var3);
?>
[/code]
Below, we can use "for loop" to echo out 0,1,2,3,4....20 ,
However, how can we use the "echo-out(0,1,2,3,4.. ..)" to make an array
like the above one???
[code=php]
<?php
for ($i=0; $i< 20; $i = $i + 1){ echo $i.",";}
?>
[/code]
[code=php]
<?php
$var1 = a;
$var2 = b;
$var3 = c;
$variables = array($var1,$va r2,$var3);
?>
[/code]
Below, we can use "for loop" to echo out 0,1,2,3,4....20 ,
However, how can we use the "echo-out(0,1,2,3,4.. ..)" to make an array
like the above one???
[code=php]
<?php
for ($i=0; $i< 20; $i = $i + 1){ echo $i.",";}
?>
[/code]
Comment