Re: IF stream lining

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
wrote:

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux