note 119773 added to language.operators.logical
| From: | younes dot k dot developer at gmail dot com | Date: | Sun, 21 Aug 2016 22:32:59 +0000 |
| Subject: | note 119773 added to language.operators.logical | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206355@lists.php.net to get a copy of this message | ||
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
----
Server IP: 72.52.91.14
Probable Submitter: 197.200.4.120
----
Manual Page -- http://php.net/manual/en/language.operators.logical.php
Edit -- https://master.php.net/note/edit/119773
Del: integrated -- https://master.php.net/note/delete/119773/integrated
Del: useless -- https://master.php.net/note/delete/119773/useless
Del: bad code -- https://master.php.net/note/delete/119773/bad+code
Del: spam -- https://master.php.net/note/delete/119773/spam
Del: non-english -- https://master.php.net/note/delete/119773/non-english
Del: in docs -- https://master.php.net/note/delete/119773/in+docs
Del: other reasons-- https://master.php.net/note/delete/119773
Reject -- https://master.php.net/note/reject/119773
Search -- https://master.php.net/manage/user-notes.php