Re: test for associative or numerically indexed array

From: Date: Thu, 20 Mar 2003 06:43:45 +0000
Subject: Re: test for associative or numerically indexed array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140400@lists.php.net to get a copy of this message
--- cpaul <inc@fastmedia.net> wrote: > Is there a method to test whether or not an array is associative? > > I'm trying to make a function that can deal with whatever type of > array (associative or numeric) that is thrown at it. It's all the same. An enumerated array is really an associative array where every key is an integer. Just treat them all like associative arrays, and you'll be fine. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#140400) next »