Hacker News new | ask | show | jobs
by kaolinite 5205 days ago
Not really needed now that PHP 5.4 has it by default (though in reality it'll be a while before 5.4 is default), but I'd use it if it let me do the following:

$foo = MyFunction()[2];

It's the one feature in PHP 5.4 that made me genuinely happy.

Another thing I'd love is a doctype of sorts for PHP. So I could go:

<?php uses "5.1.2"; ....

and then the PHP engine will treat itself as if it is PHP 5.1.2 or whatever. Yeah, not going to happen ever, but it'd be nice.