note 114966 deleted from language.operators.logical by cmb

From: Date: Tue, 16 Oct 2018 18:16:26 +0000
Subject: note 114966 deleted from language.operators.logical by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209458@lists.php.net to get a copy of this message
Note Submitter: tekreme73 at hotmail dot fr ---- // Operators &= and |= work as well // "a &= b" <=> "a = a && b" <=> "a = a AND b" // "a |= b" <=> "a = a || b" <=> "a = a OR b" $res = true; var_dump($res); $res &= false; var_dump($res); $res |= true; var_dump($res); // This code will display : bool(true) bool(false) bool(true)

« previous php.notes (#209458) next »