Bug #12244 Updated: Short form of if-clause

From: Date: Thu, 19 Jul 2001 08:31:17 +0000
Subject: Bug #12244 Updated: Short form of if-clause
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60264@lists.php.net to get a copy of this message
ID: 12244 Updated by: cynic Reported By: soenke@topconcepts.com Old Status: Open Status: Bogus Bug Type: Scripting Engine problem Operating System: RedHat Linux 7.0 PHP Version: 4.0.6 New Comment: please read the trinary op. man page carefully. you obvously misunderstood its purpose. Previous Comments: ------------------------------------------------------------------------ [2001-07-19 04:12:58] soenke@topconcepts.com Hi there, not a bug, but a suggestion: if ($foo==4) $foo=3; in short form: $foo==4 ? $foo=3 : 1; it would be nice if that where possible: $foo==4 ? $foo=3; (without else string) i didnt know where to post else. please cc to me cauze i'm not on the list. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12244&edit=1

« previous php.dev (#60264) next »