Re: IF stream lining

From: Date: Thu, 14 Jul 2011 04:56:49 +0000
Subject: Re: IF stream lining
Groups: php.general 
Request: Send a blank email to php-general+get-314056@lists.php.net to get a copy of this message
if( $val !== "with" && $val !== "from") simple comparison = faster solution... also you want type-safe you could do something like if(!in_array($val, array("from","with"))) but its neither elegant nor fast On Jul 14, 2011 12:22 AM, "Ron Piggott" <ron.piggott@actsministries.org> wrote:

« previous php.general (#314056) next »