note 26656 rejected from control-structures.else by maxim

From: Date: Fri, 08 Nov 2002 11:32:37 +0000
Subject: note 26656 rejected from control-structures.else by maxim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-39150@lists.php.net to get a copy of this message
Does anyone know how to do an IF with an array i.e. $domain = "com"; $array = "com,net,org,edu,tv,us,name,cc,bz,ws,de,be,info,biz"; $array= split("\,",$array); if ($domain == $array) { echo "$domain accepted."; } else { echo "$domain NOT accepted."; } any help would be great.

« previous php.notes (#39150) next »