what do you mean? all arrays are associative. even the simple
$arr = array(1,2,3,4,5); has key/value pairs associated with it..
similar to doing: $arr = array(0=>1,1=>2,2=>3,3=>4,4=>5);
--- Joe <[EMAIL PROTECTED]> wrote:
> Is there a way to determine if an array is associative or not? Maybe
[EMAIL PROTECTED] wrote:
> > 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
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) arra
Oops, how embarassing :-(
My son must have been playing with it.
Thanks!
- Original Message -
From: Chris Mulcahy <[EMAIL PROTECTED]>
To: 'Joe' <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 3:51 PM
Subject: RE: [PHP] Associative vs normal arrays
> Joe:
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.
regards
Wagner
--
Assumption is the mother of all fuck-ups.
--
PHP General Mailing List (http://www.php.net/)
To uns
5 matches
Mail list logo