From: chris dot walsh at pni dot com Operating system: Linux PHP version: 4.3.5RC2 PHP Bug Type: Feature/Change Request Bug description: in_var function
Description: ------------ Looking for a comparison operator/function to similar to the mysql "in" function. This could be used to replace long if statments: if($a=="b" || $a=="c" || $a=="d") something like if(in($a,"b","c","d")) or if($a=="b"||"c"||"d") or if($a|="b","c","d") -- Edit bug report at http://bugs.php.net/?id=27225&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27225&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27225&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27225&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27225&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27225&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27225&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27225&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27225&r=support Expected behavior: http://bugs.php.net/fix.php?id=27225&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27225&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27225&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27225&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27225&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27225&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27225&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27225&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27225&r=float