php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40885 New Feature for evaluating expressions
Submitted: 2007-03-21 17:43 UTC Modified: 2016-12-31 00:09 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ed at webspecdesign dot com Assigned:
Status: Open Package: Scripting Engine problem
PHP Version: 5.2.1 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ed at webspecdesign dot com
New email:
PHP Version: OS:

 

 [2007-03-21 17:43 UTC] ed at webspecdesign dot com
Description:
------------
Basically just being able to use some syntactic sugar to evaluate an expression like this:

if ( 10 > $x > 5) {
	echo $x.' is greater than 5, but less than 10';
}

which is the same as:

if ($x < 10 && $x > 5) {
	echo $x.' is greater than 5, but less than 10';
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-31 00:09 UTC] cmb@php.net
-Package: Feature/Change Request +Package: Scripting Engine problem
 [2016-12-31 00:09 UTC] cmb@php.net
There is already a draft RFC covering this feature request, so I'm
suspending the ticket.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC