From:             [EMAIL PROTECTED]
Operating system: NA
PHP version:      4.2.3
PHP Bug Type:     Feature/Change Request
Bug description:  Modified Control Structures

Here's a suggestion that we(local developers in Carbondale,IL) all feel
would improve usability of the control structures in PHP.

What if in this statement...
  if (($x == 'cats') && ($x == 'dogs') && ($x == 'birds')) {
we instead could say...
  if ($x IN 'cats','dogs','birds') {

This would reduce typing and allow you to compare lists(arrays) in your
conditional statements without using array functions.
-- 
Edit bug report at http://bugs.php.net/?id=21119&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21119&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21119&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21119&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21119&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21119&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21119&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21119&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21119&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21119&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21119&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21119&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21119&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21119&r=isapi

Reply via email to