note 84441 added to class.domnodelist

From: Date: Mon, 14 Jul 2008 19:28:23 +0000
Subject: note 84441 added to class.domnodelist
Groups: php.notes 
Request: Send a blank email to php-notes+get-141497@lists.php.net to get a copy of this message
That's simply because up to and including PHP 5 (latest version at this time) you can't use a function result as an object even if it is an object. Work: 1) $obj->sub_obj->method(); 2) $sub_obj = $obj->get_sub_obj(); $sub_obj->method(); Don't work: 1) $obj->get_sub_obj()->method(); 2) echo $obj->get_sub_obj()->property; ---- Server IP: 69.147.83.197 Probable Submitter: 79.114.33.71 ---- Manual Page -- http://www.php.net/manual/en/class.domnodelist.php Edit -- https://master.php.net/note/edit/84441 Del: integrated -- https://master.php.net/note/delete/84441/integrated Del: useless -- https://master.php.net/note/delete/84441/useless Del: bad code -- https://master.php.net/note/delete/84441/bad+code Del: spam -- https://master.php.net/note/delete/84441/spam Del: non-english -- https://master.php.net/note/delete/84441/non-english Del: in docs -- https://master.php.net/note/delete/84441/in+docs Del: other reasons-- https://master.php.net/note/delete/84441 Reject -- https://master.php.net/note/reject/84441 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141497) next »