Re: PHP's vision

From: Date: Mon, 03 Jun 2002 13:56:17 +0000
Subject: Re: PHP's vision
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-84775@lists.php.net to get a copy of this message
At 04:28 PM 6/3/2002, mlwmohawk@mohawksoft.com 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

« previous php.dev (#84775) next »