|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-02-11 17:10 UTC] chris dot walsh at pni dot com
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") PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 20:00:01 2025 UTC |
if (in_array("a", array("a", "b", "c"))) works fine for this :)