Re: [PHP4BETA] Is this a good idea for an operator?

From: Date: Tue, 03 Aug 1999 06:53:45 +0000
Subject: Re: [PHP4BETA] Is this a good idea for an operator?
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-3054@lists.php.net to get a copy of this message
On Tue, Aug 03, 1999 at 02:12:10AM -0400, John Coggeshall allegedly wrote: > > Instead of this in PHP/C code > > if ($action=="modify" || $action=="create" || > > $action=="delete") { > > > > have this > > > > if ($action in ("modify","create","delete")) { > > Or > > if ($action || ("modify", "create", "delete")) { I find the 'in' syntac much more intuitive... It's also more like Perl of Pascal. Mathijs

« previous php.version4 (#3054) next »