Array dereferencing

at 2010-09-22 in Further reading by friebe (0 comments)

While array dereferencing was added to the PHP runtime's so-far unreleased SVN trunk a while ago, this feature isn't going to be backported to older PHP versions, which the XP-Framework will continue to support for quite a while. We've thus added a core functionality, this(), to make indexer access possible:

  $a= $class->getMethods()[0];         // Supported in PHP as of 2011*
$a= this($class->getMethods(), 0); // The XP-Framework way

* Educated guess, there is no communicated release date for PHP "next"



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES

Related

Find related articles by a search for «Array».