note 115223 deleted from language.operators.logical by salathe
| From: | salathe@php.net | Date: | Tue, 17 Jun 2014 07:57:14 +0000 |
| Subject: | note 115223 deleted from language.operators.logical by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199696@lists.php.net to get a copy of this message | ||
Note Submitter: As247
----
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--;