* Thus wrote Eugene Lee ([EMAIL PROTECTED]): > On Wed, Sep 17, 2003 at 12:49:03AM +0000, Curt Zirzow wrote:
> The switch statement doesn't do an equivalency test, does it? So while > this switch statement can be rewritten as: > > if (($var == 'TEST-1') || ($var == 'TEST-1') || ($var == 'TEST-1')) > { > do something > } > > it doesn't do: > > if (($var === 'TEST-1') || ($var === 'TEST-1') || ($var === 'TEST-1')) > { > do something > } Correct. Although in most cases == is a good enough test. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php