note 14412 added to language.types.boolean.php

From: Date: Mon, 30 Jul 2001 15:19:45 +0000
Subject: note 14412 added to language.types.boolean.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16061@lists.php.net to get a copy of this message
If you do : if ($iamnotset) or this : if ($iamnotset == true) and it's not set (false) then an error will result (E_NOTICE). To avoid this, try isset(), empty(), or something similar. Of course E_NOTICE can be disabled (and usually is) via the error_reporting setting. http://www.php.net/manual/en/language.types.boolean.php

« previous php.notes (#16061) next »