note 115415 deleted from control-structures.if by salathe

From: Date: Mon, 21 Jul 2014 07:55:57 +0000
Subject: note 115415 deleted from control-structures.if by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-199992@lists.php.net to get a copy of this message
Note Submitter: Konrad W ---- It has been said that an assignment in an if statement always resolves to 'true'. However, that is only the case if the value being assigned is not null. if ($a = 1) // will produce true if ($a = null) // will produce false

« previous php.notes (#199992) next »