note 115223 added to language.operators.logical
| From: | As247 | Date: | Tue, 17 Jun 2014 04:00:21 +0000 |
| Subject: | note 115223 added to language.operators.logical | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199690@lists.php.net to get a copy of this message | ||
You can use "&&" or "and" for sequence conditions like
<?php
if($A<$C){
if($A>$B){
$A--;
}
}
?>
can be converted to:
<?php
$A<$C && $A>$B && $A--;
//or
$A<$C and $A>$B and $A--;
----
Server IP: 72.52.91.14
Probable Submitter: 118.70.183.106
----
Manual Page -- http://php.net/manual/en/language.operators.logical.php
Edit -- https://master.php.net/note/edit/115223
Del: integrated -- https://master.php.net/note/delete/115223/integrated
Del: useless -- https://master.php.net/note/delete/115223/useless
Del: bad code -- https://master.php.net/note/delete/115223/bad+code
Del: spam -- https://master.php.net/note/delete/115223/spam
Del: non-english -- https://master.php.net/note/delete/115223/non-english
Del: in docs -- https://master.php.net/note/delete/115223/in+docs
Del: other reasons-- https://master.php.net/note/delete/115223
Reject -- https://master.php.net/note/reject/115223
Search -- https://master.php.net/manage/user-notes.php