I would like to open the discussion around the support of negative indexes, as Ifeel a lot of developers will benefit from this syntactical sugar.
$foo = array(1,2,3);
echo $foo; // 3
echo $foo[-1]; // 3
$bar = 'baz';
echo $foo; // 'z'
echo $foo[-1]; // 'z'
The change to PHP is quite trivial, but as it's a change to language it needs tobe discussed.
I'm happy to open a RFC, I have got a wiki account but I haven't got permissionto add a wiki page. Whom do I need to contact regarding getting correctpermissions to add/edit wiki pages?
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php