Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51268 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62495 invoked from network); 14 Jan 2011 18:21:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2011 18:21:47 -0000 Authentication-Results: pb1.pair.com header.from=marc@easen.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=marc@easen.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain easen.co.uk from 74.125.82.54 cause and error) X-PHP-List-Original-Sender: marc@easen.co.uk X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:46373] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/72-48854-A34903D4 for ; Fri, 14 Jan 2011 13:21:47 -0500 Received: by wwb31 with SMTP id 31so3343937wwb.11 for ; Fri, 14 Jan 2011 10:21:40 -0800 (PST) Received: by 10.227.146.149 with SMTP id h21mr1046834wbv.43.1295029300460; Fri, 14 Jan 2011 10:21:40 -0800 (PST) Received: from [192.168.0.5] (5acccde2.bb.sky.com [90.204.205.226]) by mx.google.com with ESMTPS id 11sm1112634wbi.12.2011.01.14.10.21.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 14 Jan 2011 10:21:31 -0800 (PST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 14 Jan 2011 18:21:28 +0000 Message-ID: <496E551C-85F0-423E-89FA-2C5245808320@easen.co.uk> To: internals@lists.php.net Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Subject: [PHP-DEV] Support negative indexes for arrays and strings From: marc@easen.co.uk (Marc Easen) 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 =3D array(1,2,3); echo $foo[2]; // 3 echo $foo[-1]; // 3 $bar =3D '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.=20 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