note 77374 added to language.oop5

From: Date: Mon, 27 Aug 2007 03:53:06 +0000
Subject: note 77374 added to language.oop5
Groups: php.notes 
Request: Send a blank email to php-notes+get-129826@lists.php.net to get a copy of this message
in addition to mail at touchmypixel dot com: if methods aren't a concern, a great way to work with anonymous objects is to instantiate stdClass, which is php's base class. word up on the ECMAScript -- this works great with json! <?php $foo = new stdClass(); $foo->bar = 'string'; $foo->num = 10; header('Content-type: application/json'); echo json_encode($foo); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 75.69.89.70 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.php Edit -- https://master.php.net/note/edit/77374 Del: integrated -- https://master.php.net/note/delete/77374/integrated Del: useless -- https://master.php.net/note/delete/77374/useless Del: bad code -- https://master.php.net/note/delete/77374/bad+code Del: spam -- https://master.php.net/note/delete/77374/spam Del: non-english -- https://master.php.net/note/delete/77374/non-english Del: in docs -- https://master.php.net/note/delete/77374/in+docs Del: other reasons-- https://master.php.net/note/delete/77374 Reject -- https://master.php.net/note/reject/77374 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129826) next »