php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #2341 expression evaluation - improvement
Submitted: 1999-09-21 12:00 UTC Modified: 2002-01-27 01:19 UTC
From: tsf at post dot cz Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tsf at post dot cz
New email:
PHP Version: OS:

 

 [1999-09-21 12:00 UTC] tsf at post dot cz
I think it'd be nice if I could use e.g.

echo array("Su","Mo","Tu","We","Th","Fr","Sa")[$i];

anyway, it throws out a parser error in 3.0.12

is there any chance this would change?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-23 00:01 UTC] hholzgra at cvs dot php dot net
moved to feature requests
 [2001-02-10 13:47 UTC] jimw@php.net
refiled against 4.0.
 [2002-01-27 01:19 UTC] sterling@php.net
No way, the WTF is to high :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 19:01:28 2025 UTC