note 123240 added to language.operators.logical
| From: | mcodingset at outlook dot com | Date: | Tue, 16 Oct 2018 17:45:54 +0000 |
| Subject: | note 123240 added to language.operators.logical | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209454@lists.php.net to get a copy of this message | ||
// __forFun ...
// Example Logical
or operator
$a = true; // true|false or something for test :)
$b = "I'm a string result"; // use|test string or object
if (!$a or !$c = $b) {
$c = 'Hey';
}
// print result
var_dump($c); // "I'm a string result"
Have Fun!
----
Server IP: 208.43.231.9
Probable Submitter: 2a02:a311:a242:b00:3999:b933:ccc8:82dc
----
Manual Page -- http://php.net/manual/en/language.operators.logical.php
Edit -- https://master.php.net/note/edit/123240
Del: integrated -- https://master.php.net/note/delete/123240/integrated
Del: useless -- https://master.php.net/note/delete/123240/useless
Del: bad code -- https://master.php.net/note/delete/123240/bad+code
Del: spam -- https://master.php.net/note/delete/123240/spam
Del: non-english -- https://master.php.net/note/delete/123240/non-english
Del: in docs -- https://master.php.net/note/delete/123240/in+docs
Del: other reasons-- https://master.php.net/note/delete/123240
Reject -- https://master.php.net/note/reject/123240
Search -- https://master.php.net/manage/user-notes.php