Newbie question about isset and binary conditionals
| From: | Al | Date: | Mon, 07 Jun 2004 13:03:53 +0000 |
| Subject: | Newbie question about isset and binary conditionals | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187781@lists.php.net to get a copy of this message | ||
I posted this previously; but the subject was misleading.
I could use one additional clarification regarding good practice.
As I understand the php manual the following is acceptable and I assume good practice.
$foo= TRUE;
if($foo) do.............. ; where $foo is a binary; but not a variable.
isset should be used for variables, such as;
isset($var) for variables and be careful with $var= ' '; etc. because $var is assigned, i.e., "set".