atom feed14 messages in net.php.lists.internals[PHP-DEV] Support negative indexes fo...
FromSent OnAttachments
Marc EasenJan 14, 2011 10:21 am 
Matthew FondaJan 14, 2011 10:32 am 
Marcin BabijJan 14, 2011 10:34 am 
Stas MalyshevJan 14, 2011 10:47 am 
Marc EasenJun 4, 2012 12:08 pm 
Richard LynchJun 11, 2012 11:32 am 
Stas MalyshevJun 11, 2012 12:13 pm 
Richard LynchJun 11, 2012 12:26 pm 
Galen Wright-WatsonJun 11, 2012 12:28 pm 
Marc EasenJun 11, 2012 1:25 pm 
Marc EasenJun 11, 2012 2:01 pm 
sle...@pipeline.comJun 12, 2012 4:21 pm 
Marc EasenJun 17, 2012 12:53 pm 
Lars StrojnyJun 17, 2012 3:52 pm 
Subject:[PHP-DEV] Support negative indexes for arrays and strings
From:Marc Easen (ma@easen.co.uk)
Date:Jan 14, 2011 10:21:05 am
List:net.php.lists.internals

Hello everyone,

I would like to open the discussion around the support of negative indexes, as I
feel a lot of developers will benefit from this syntactical sugar.

Example: $foo = array(1,2,3); echo $foo[2]; // 3 echo $foo[-1]; // 3

$bar = 'baz'; echo $foo[2]; // 'z' echo $foo[-1]; // 'z'

The change to PHP is quite trivial, but as it's a change to language it needs to
be discussed.

I'm happy to open a RFC, I have got a wiki account but I haven't got permission
to add a wiki page. Whom do I need to contact regarding getting correct
permissions to add/edit wiki pages?

Kind Regards Marc