note 84997 added to function.json-encode

From: Date: Sat, 09 Aug 2008 06:05:44 +0000
Subject: note 84997 added to function.json-encode
Groups: php.notes 
Request: Send a blank email to php-notes+get-143320@lists.php.net to get a copy of this message
For anyone who has run into the problem of private properties not being added, you can simply implement the IteratorAggregate interface with the getIterator() method. Add the properties you want to be included in the output into an array in the getIterator() method and return it. ---- Server IP: 69.147.83.197 Probable Submitter: 72.198.16.142 ---- Manual Page -- http://www.php.net/manual/en/function.json-encode.php Edit -- https://master.php.net/note/edit/84997 Del: integrated -- https://master.php.net/note/delete/84997/integrated Del: useless -- https://master.php.net/note/delete/84997/useless Del: bad code -- https://master.php.net/note/delete/84997/bad+code Del: spam -- https://master.php.net/note/delete/84997/spam Del: non-english -- https://master.php.net/note/delete/84997/non-english Del: in docs -- https://master.php.net/note/delete/84997/in+docs Del: other reasons-- https://master.php.net/note/delete/84997 Reject -- https://master.php.net/note/reject/84997 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143320) next »