note 99567 deleted from function.json-encode by thiago

From: Date: Wed, 25 Aug 2010 07:43:53 +0000
Subject: note 99567 deleted from function.json-encode by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172029@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- In response to the previous comment by nicolas "arrays are returned only if you don't define index" : That is not true. You can define index, but they must be consecutive numbers starting from 0 in order to be an array: <?php echo json_encode(array(0=>"test",1=>"test",2=>"test")); ?> Will give : ["test","test","test"]

« previous php.notes (#172029) next »