News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Stijn Leenknegt's Blog:
[PHP6] function-return-array idea!
September 07, 2007 @ 15:19:00

Stijn Leenknegt has posted a suggestion of his directed towards the developers behind PHP6 for a different way to return array values that he'd of found handy in working with his latest application (a Zend Framework app).

In his example, he currently returns the result of a get() call on a registry value to a variable and gets the first value (of an array) from it. His suggestion, though is to simplify it down to something like:

$one = Zend_Registery::get('myArray')[0];

Making it even easier (and more elegant) to work with returned array values.

So dev team of PHP, could you discuss this idea and maybe you can add this to PHP6.
0 comments voice your opinion now!
function return array zendframework value elegant function return array zendframework value elegant



Similar Posts

Community News: Unofficial Zend Framework Forums - Zfforums.com

CodeSnipers.com: Perl vs. PHP - Datatypes[arrays|lists|hash|map]

Jonathan Snook's Blog: CakePHP: Data Validation

Rob Allen's Blog: ID!=id (Zend Framework Tutorial Updates)

Chris Hartjes' Blog: Zend_Service_Audioscrobbler moves to Zend Framework Core


Community Events







Don't see your event here?
Let us know!


PHP5 book conference security developer mysql releases job PEAR package application cakephp release ajax zend database example code framework zendframework

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework