Req #52399 [Opn->Dup]: Negative character index

From: Date: Fri, 23 Jul 2010 10:00:30 +0000
Subject: Req #52399 [Opn->Dup]: Negative character index
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-152659@lists.php.net to get a copy of this message
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)

« previous php.bugs (#152659) next »