KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When pushing a new value onto an indexed array $array[] = 'new value'; the PHP documentation explains how it gets added in the [MAX_INDEX+1] position. When pushing a new value onto an associative array $array['key'] = 'new value'; it works the same, but I don't see any explanation in the documentation to confirm how or why it does so. The order seems to be consistent in my implementation, but how do I know for sure that the order will remain the same? Does anyone know how PHP implements this on the back-end?
Tags (comma-separated)
Save Edits
Cancel