Bug #12244: Short form of if-clause
| From: | soenke at topconcepts dot com | Date: | Thu, 19 Jul 2001 08:12:58 +0000 |
| Subject: | Bug #12244: Short form of if-clause | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-60263@lists.php.net to get a copy of this message | ||
From: soenke@topconcepts.com
Operating system: RedHat Linux 7.0
PHP version: 4.0.6
PHP Bug Type: Scripting Engine problem
Bug description: Short form of if-clause
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 bug report at: http://bugs.php.net/?id=12244&edit=1