note 21705 added to function.end

From: Date: Thu, 23 May 2002 19:44:23 +0000
Subject: note 21705 added to function.end
Groups: php.notes 
Request: Send a blank email to php-notes+get-30955@lists.php.net to get a copy of this message
If you have an array of objects, you cannot use the syntax: end($arrayOfObjects)->someMethod(); you must use: $o = end($arrayOfObjects); $o->someMethod(); While the second is more clear, the first would be nice to use in certain situations. -- http://www.php.net/manual/en/function.end.php http://master.php.net/manage/user-notes.php?action=edit+21705 http://master.php.net/manage/user-notes.php?action=delete+21705 http://master.php.net/manage/user-notes.php?action=reject+21705

« previous php.notes (#30955) next »