Re: count the elements of each dimension of the array

From: Date: Sat, 13 Dec 2003 15:51:43 +0000
Subject: Re: count the elements of each dimension of the array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172631@lists.php.net to get a copy of this message
orlandopozo@icnet.com.ve wrote:
I have this script: <? $ojpp[] = "1"; $ojpp[] = "2"; $ojpp[] = "3"; $ojpp[] = "4";
This is illegal. Only one pair of empty square brackets is allowed. How whould php know where to add the new key?
$ojpp[][] = "1";


« previous php.general (#172631) next »