note 21705 deleted from function.end by sean

From: Date: Wed, 17 Nov 2004 21:05:11 +0000
Subject: note 21705 deleted from function.end by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-80669@lists.php.net to get a copy of this message
Note Submitter: david[no----spam] at boeke dot com ---- 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.

« previous php.notes (#80669) next »