Re: IF statement help

From: Date: Fri, 28 Sep 2001 18:20:56 +0000
Subject: Re: IF statement help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69203@lists.php.net to get a copy of this message
on 9/28/01 12:48 PM, Chesley A Windon at windon@orthus.net wrote: > My question is: Is there a way to accomplish the same thing without having > this large of an IF statement comparison? There's probably a lot of ways. What else can $key equal? If these are the only values that contain "control", something like this might work: if (substr_count($key, "control")) { do something; } Matt _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.general (#69203) next »