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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
46 - 12 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Sun May 19 10:01:32 2024 UTC