|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53106 error on example
Submitted: 2010-10-19 21:16 UTC Modified: 2010-10-20 12:18 UTC
From: ar at ailtonribeiro dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ar at ailtonribeiro dot com
New email:
PHP Version: OS:


 [2010-10-19 21:16 UTC] ar at ailtonribeiro dot com
On there is an error:

* Now:
The above example will output
Non-associative array output as array: [[1,2,3]]
Non-associative array output as object: {"0":{"0":1,"1":2,"2":3}}

* Correcting would be:
The above example will output
Non-associative array output as array: [[1,2,3]]
ASSOCIATIVE array output as object: {"0":{"0":1,"1":2,"2":3}}


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-20 02:06 UTC]
-Status: Open +Status: Bogus
 [2010-10-20 02:06 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

The array is still non-associative, but its outputted as an ASSOCIATIVE object. No bug here though
 [2010-10-20 12:18 UTC]
Added associative array to json_ecode example.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 23 20:01:23 2021 UTC