note 8975 added to empty

From: Date: Tue, 10 Oct 2000 00:11:13 +0000
Subject: note 8975 added to empty
Groups: php.notes 
Request: Send a blank email to php-notes+get-6280@lists.php.net to get a copy of this message
Based on the chart that jeagle... did above, <empty()> looks pretty useless to me, especially in light of the fact that it tests TRUE if a value is actually assigned a value called FALSE. In thinking further, it seems to be a combination of the usual ptr test for c "if(ptr)" and isset, like ((val)&&(isset(val)). For me, in this untyped language, isset() seems to be more useful. http://www.php.net/manual/function.empty.php

« previous php.notes (#6280) next »