php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #27935 array access
Submitted: 2004-04-09 13:59 UTC Modified: 2004-04-09 14:25 UTC
From: student_vienna at aon dot at Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2004-04-09 13:59 UTC] 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:
----------------
...


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-09 14:25 UTC] derick@php.net
We're not ruby and this was proposed before (and denied).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC