Re: echo returnArray()['a']; // workaround

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Casey wrote:

I don't know why I'm continuing this... but for the truly crazy:
	function w(&$t) {
		$t = array('f' => '...');
		return 't';
	}
	
	echo ${w($t)}['f'];


addictive isn't it!

casey, I truelly believe that's as short as it can get - and a great bit of code reduction - most impressed :D

concider: w()['f']
the only additions are a ${} wrapper!

nice

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux