Re: if statement

From: Date: Tue, 30 Sep 2003 16:26:17 +0000
Subject: Re: if statement
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164421@lists.php.net to get a copy of this message
Steve Buehler wrote: [snip]
$array=("/etc/bind/options.conf.wp","/etc/bind/rndc.conf.wp","/etc/bind/keys.conf.wp"); if($k2b==$array){
    do this1
}else{
    do this2
}
You are close. Check out in_array(). http://us4.php.net/in_array if (in_array($kb2, $array)) - Brad

« previous php.general (#164421) next »