Re: Inconsistency of empty() and isset() ?

From: Date: Sun, 16 Apr 2006 23:25:55 +0000
Subject: Re: Inconsistency of empty() and isset() ?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-22802@lists.php.net to get a copy of this message
As empty is "quite" the contrary of isset, the OR would be preferable over AND. Indeed: if(!empty($var1) && !empty($var2)) could be simplified to if(!empty($var1, $var2)) Regards. -- Etienne Kneuss http://www.colder.ch/ colder@php.net

« previous php.internals (#22802) next »