RE: [PHP-DEV] Support negative indexes for arrays and strings
| From: | Laupretre François | Date: | Mon, 03 Sep 2012 10:12:20 +0000 |
| Subject: | RE: [PHP-DEV] Support negative indexes for arrays and strings | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-62721@lists.php.net to get a copy of this message | ||
Hi,
Instead of [], which is ambiguous, couldn't we just extend the {} syntax : we already have
$a{<offset>} working with positive numbers, couldn't we extend it to accept negative
offsets also ?
François