Every day is Election Day at DZone. Login and vote now.
By ldebrouwer
via lucdebrouwer.nl
Published: Sep 03 2010 / 14:30
Ever since I started programming object oriented PHP I've been using function chaining and function dereferencing. But there is another thing I'd like to be able to do that was added to the PHP trunk over 8 months ago that still hasn't made it to the current release. The function I'm referring to is array dereferencing. Because I got tired of waiting for this to be included in PHP 5.4 or 6 I decided to write a little code snippit for this exact purpose.



Add your comment