Req #52399 [Opn->Dup]: Negative character index
Edit report at http://bugs.php.net/bug.php?id=52399&edit=1
ID: 52399
Updated by: aharvey@php.net
Reported by: olamedia at gmail dot com
Summary: Negative character index
-Status: Open
+Status: Duplicate
Type: Feature/Change Request
Package: Strings related
PHP Version: Irrelevant
New Comment:
This is a duplicate of request #17077.
In terms of the feature itself, it has been discussed before. The 2005
developer meeting resulted in a resolution to implement string slicing,
which would enable this feature, but as far as I know, there's been no
further movement on this since.
Previous Comments:
------------------------------------------------------------------------
[2010-07-22 06:07:00] olamedia at gmail dot com
Description:
------------
Retrieve characters from string end using negative index value.
Test script:
---------------
$string = 'abc';
echo $string[-1]; // 'c'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52399&edit=1
Thread (2 messages)