for example in a loop we use an array, we add some info in this array.
Code: Select all
<?php
// just an example
for($i=0; $i<10000; $i++)
{
$array[] = $data[$i];
}
?>Code: Select all
<?php
// just another example
$array = array();
for($i=0; $i<10000; $i++)
{
$array[] = $data[$i];
}
?>It was a surprise for me too because I used alwas the second one.
Thanks,