Posted by vito on 07/15/06 14:28
>>> $a[$i] = array();
>> Is the above declaration legitimate?
>
> as long as $a is defined as an array, yes.
>
$array = array();
for ($k = 0; $k < 10000; $k++)
$array[$k] = array();
for ($j = 0; $j < 10000; $j++)
for ($k = 0; $k < 3; $k++)
$array[$j][$k] = 0;
How to initialize?
$array[$i][1] = $array[$i][1] . $line;
PHP Notice: Undefined offset: 2700 in array.php on line 24
[Back to original message]
|