note 119773 rejected from language.operators.logical by cmb
| From: | cmb@php.net | Date: | Sun, 21 Aug 2016 22:55:33 +0000 |
| Subject: | note 119773 rejected from language.operators.logical by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206356@lists.php.net to get a copy of this message | ||
Note Submitter: younes dot k dot developer at gmail dot com
----
hey i saw something weird in a php framework like this :
$id || $data['created'] = $now;
is this mean if $id is NULL then $data['created'] ll receive $now variable, why there is
not if and its just a regular statement , so if this what am thinking of so if is useless and the
language so freaky illogic , any one can gave a name to this think?
i search in google about "logic operation in normal statement php " nothing founds, i
tried out a lot of keywords cant find something about it, if some1 can at least how it call this
sh...t ,
pls help me thx in advance