PEAK XOOPS - MEMO for myself about indexes for array(2) in englishin japanese

Archive | RSS |
PHP
PHP : MEMO for myself about indexes for array(2)
Poster : GIJOE on 2007-03-10 04:56:00 (7758 reads)

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).

0 comments

Related articles
Printer friendly page Send this story to a friend

Comments list

Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!