[PHP] Associative vs normal arrays

2001-03-16 Thread Joe
Is there a way to determine if an array is associative or not? Maybe something similar to the is_array() function ?? Thanks, JOE

Re: [PHP] Associative vs normal arrays

2001-03-16 Thread Alexander Wagner
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

Re: [PHP] Associative vs normal arrays

2001-03-16 Thread Joe
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:

Re: [PHP] Associative vs normal arrays

2001-03-16 Thread eschmid+sic
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

Re: [PHP] Associative vs normal arrays

2001-03-16 Thread Alexander Wagner
[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

Re: [PHP] Associative vs normal arrays

2001-03-17 Thread Yev
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