True or not true

From: Date: Tue, 18 Jul 2000 11:24:34 +0000
Subject: True or not true
Groups: php.db 
Request: Send a blank email to php-db+get-1235@lists.php.net to get a copy of this message
Hi, I just made a little function for resolving true and false phase. But even I change $trueorfalse to 0, It will show me "1, checked". Why? I thing this is newbie fault, but I can't really hit the wall with right solution. Thanks for help <?PHP function checked($value){ if ($value = 1){ echo $value; echo "<br>checked"; } else { echo $value; echo "<br>unchecked";} } $trueorfalse=1; checked($trueorfalse); ?>

« previous php.db (#1235) next »