Re: Associative vs normal arrays

From: Date: Fri, 16 Mar 2001 23:01:37 +0000
Subject: Re: Associative vs normal arrays
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-44336@lists.php.net to get a copy of this message
On Fri, Mar 16, 2001 at 11:43:17PM +0100, Alexander Wagner wrote: > Joe wrote: > > Is there a way to determine if an array is associative or not? Maybe > > something similar to the is_array() function ?? > > There are only assotiative arrays in PHP. PHP has associative and numeric (normal) arrays. But is_array() says only if it is an array or not. The distinction could only be made if you look at keys. Keys can be integers or strings. I hope this was correct, if not, Andrei can correct me :) -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ http://www.php-buch.de/

« previous php.general (#44336) next »