|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-05-07 14:32 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 21:00:01 2025 UTC |
This is my third (and last, for now) enhancement request. Please be patient with me - I am an ardent PHP fan. The single biggest thing I would like to see for strings is to be able to provide a negative index, where $str{-1} means the last character, $str{-2} the penultimate character and so on down to $str[0] === $str[-strlen($str)] It's just a convenince thing since I can already get there using substr or slice - it would just be a more compact way of writing it. Regards to the PHP team, Csaba Gabor