This confused me for awhile, because the single equal sign seemed to work
for comparison, but created inexplicable errors in my programs. It seems
strange to me that a successful variable value assignment does not return
true.
example:
<?
$shiny = 1;
if($shiny = 0){ echo("This wont print"); }
echo( $shiny ); //this will return 0
?>
--Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]