php/php-src — pull request #100 by Easen (2012-06-04 19:05:18+00:00)
Title: Support negative string offset

Hi,

I have updated PHP to support negative string offsets, the change is very small and it's benefits are quite large (IMO).

As an alternative to:
$var = 'abc';
echo $var[strlen($var) - 1];

Can be summed up with:
echo $var[-1];

I will send a formal request to the mail list in the next few minutes.

Thanks.