#27935 [Opn->WFx]: array access

From: Date: Fri, 09 Apr 2004 18:25:58 +0000
Subject: #27935 [Opn->WFx]: array access
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57881@lists.php.net to get a copy of this message
ID: 27935 Updated by: derick@php.net Reported By: student_vienna at aon dot at -Status: Open +Status: Wont fix Bug Type: Feature/Change Request PHP Version: Irrelevant New Comment: We're not ruby and this was proposed before (and denied). Previous Comments: ------------------------------------------------------------------------ [2004-04-09 13:59:40] student_vienna at aon dot at Description: ------------ Change request... There is a new language named 'ruby' (http://www.ruby-lang.org). The syntax of this language is beautiful. To acces the last element in an array it is possible to write: '$arr[-1]' I think PHP should use some nice (syntax) features of this language. daniel Reproduce code: --------------- none - cr Expected result: ---------------- ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27935&edit=1

« previous php.bugs (#57881) next »