To Brad, Marek and Curt (and anybody who responds after this)
Thank you so much for your help. This is going to help me out so much in a lot of my scripts. It will sure make them a little.....No....a LOT more portable now.


Thanks
Steve

At 11:26 AM 9/30/2003, you wrote:
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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to