* Thus wrote Andrew Brampton ([EMAIL PROTECTED]):
> No there is a difference...
> 
> Take the example
> [ [a, b, c] , [ d, e, f] ]
> In a 2 dimensional array those values would be stored adjacent in memory...
> ie
> a b c d e f
> 
> In a Array of Arrays, the first and 2nd elements would be pointers, to where
> the [a, b, c], and [d, e, f] arrays are actually kept... ie
> 0 1 2 3 4 5 6 7
> 2 3 a b c d e f
> but this can all depend on the compiler, and the language construct... But
> its best to recognise a difference even if its really small...

how they are aligned in memory doesn't make them different in what
they are. Either way you still have a 2 dimential matrix.

> 
> and in PHP it can get even more confusing with its non strict typing, and
> un-fixed size arrays etc...

Some would argue this. PHP makes it easier for the programmer, so
he doesn't have to worry about type differences, memory allocation
and lower level access.  The programmer just needs to assign a
variable and poof... it is created.

> 
> Andrew
> ----- Original Message -----
> From: "Curt Zirzow" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, August 02, 2003 11:06 PM
> Subject: Re: [PHP] Pushing array onto array
> 
> 
> > * Thus wrote Andrew Brampton ([EMAIL PROTECTED]):
> > >
> > > It works exactly how it should... However really the array isn't a 2
> > > dimensional one, since PHP doesn't have them, its rather a array of
> arrays
> > > which is roughly the same thing (and something not to worry about)...
> >
> > A 2 demensional array is an array of arrays.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to