MEMO for myself about indexes for array(2)

Date 2007-03-10 04:56:00 | Category: PHP

in englishin japanese
Index specified by a boolean, a double, ant an int will be integer index via intval()
exception: out of the range of 32bit integer

Index specified by a string will be two type of index by the condition


/^[-]?[1-9][0-9]*$/

If the string matches this regex, it will be integer index.
Else, it will be string index (associated array).




You can read more news at PEAK XOOPS.
http://xoops.peak.ne.jp

The URL for this story is:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=410