Doc #53106 [Opn->Bgs]: error on example

From: Date: Wed, 20 Oct 2010 00:06:47 +0000
Subject: Doc #53106 [Opn->Bgs]: error on example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5253@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53106&edit=1 ID: 53106 Updated by: kalle@php.net Reported by: ar at ailtonribeiro dot com Summary: error on example -Status: Open +Status: Bogus Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2010-10-19 21:16:41] ar at ailtonribeiro dot com Description: ------------ On http://php.net/manual/en/function.json-encode.php 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}} ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53106&edit=1

« previous php.doc.bugs (#5253) next »