note 9216 added to empty

From: Date: Mon, 23 Oct 2000 09:08:05 +0000
Subject: note 9216 added to empty
Groups: php.notes 
Request: Send a blank email to php-notes+get-6869@lists.php.net to get a copy of this message
Try this: $test='0'; //zero echo empty($test) ? "True" : "False"; //PHP 3.0 returns "False"; //PHP 4.0 returns "True"; http://www.php.net/manual/function.empty.php

« previous php.notes (#6869) next »