[PHP] Re: Associative vs normal arrays

2003-11-27 Thread Kim Steinhaug
Fix your clock! Post like theese really screws up the layout in my newsreader! -- Kim Steinhaug --- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. --

RE: [PHP] Re: Associative vs normal arrays

2003-02-02 Thread Mark Charette
All arrays in PHP are associative; we sometimes use integers to refer to them, but the order of the array internally is not necessarily the same as the integers; indeed, any array can have "holes" in them. So the question is moot. "There are no different indexed and associative array types in PHP,

[PHP] Re: Associative vs normal arrays

2003-02-02 Thread no-spam----me
No functions that I can think of but you can write one like this: $arrayType = 'numeric'; foreach($myArray as $key => $value) { if(!is_numeric($key)) { $arrayType = 'associative'; } } Also remember that an array can be both! Larry > Is there a way to determine if an array