Determine if a PHP array uses keys or indices

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-04-12T20:53:52Z Indexed on 2010/04/12 21:02 UTC
Read the original article Hit count: 194

Filed under:
|
|
|

How do I find out if a PHP array was built like this:

array('First', 'Second', 'Third');

Or like this:

array('first' => 'First', 'second' => 'Second', 'third' => 'Third');

???

© Stack Overflow or respective owner

Related posts about php

Related posts about arrays