php - Two compares in one if / else statement -
i trying find answer pretty simple question. is possible ask 2 things in 1 if / else statement? for example: if($a>$b , isset($c)) return true; i understand possible write like: if ($a>$b) { if (isset($c)) return true; } i looking easier , less messy code. advises. thanks. with of && operator : if($a > $b && isset($c)){ return true; } note : check both conditions true, if yes if block works. if want of them true lead if block execution go || operator.