Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
qixxiq
on Dec 16, 2011
|
parent
|
context
|
favorite
| on:
How big are PHP arrays (and values) really?
I think its important to note your first example actually isn't valid. Part of PHP's type-mixing means strings that consist of an integer representation as array keys are automatically casted to int.
$arr = array(1 => 10, "1" => 11); echo $arr[1]; // >> 11
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: