At 04:28 PM 6/3/2002, [EMAIL PROTECTED] wrote:
> >> I am curious, besides some language quarks, like multidimentional
> >> arrays, what sorts of things can you do in Java which can not be done
> >> in PHP?
> >
> > I'm actually curious about the multidimensional arrays point.  Exactly
> > what do you mean?  PHP can obviously do $a[1][2][3][4]...
>
>Maybe it has been fixed.
>
>Take this:
>
>$a[5][1000]
>and
>$b[1000][5]
>
>Which uses more memory? Even though, conceptually, they have the same 
>number of elements, $b is FAR more
>inefficient.

In PHP, both use the same amount of memory (very little, roughly two zval's 
and two HashTable's).

>  AFAIK there are no "multidimentional" arrays in PHP, but the ability to 
> create arrays of arrays, which
>while similar in syntax, are different in implementation.

Right.

Zeev


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to