|
Posted by ybakos on 07/16/06 02:21
Hi vito, you can think of php arrays as being dynamic -- you don't have
to declare it's size ahead of time like in C or Java. I'm pretty sure
they dynamically resize themselves to fit their contents.
So you would just:
for (...) {
$newArray = array(1,2,3)
$myarray[] = $newArray;
}
But 10,000 can be very big; you should think about your problem
solution.
vito wrote:
> how to achieve that? it seems php doesn't support it well for a C
> programmer?
>
> i hope to use something like:
>
> a[$i][0];
>
> a[$i][1];
>
> a[$i][2];
Navigation:
[Reply to this message]
|