0 && abs($a[1]-$a[2])>0) { $count++; }elseif (max($b) == $b[1] || min($b) == $b[1]) { $count++; }elseif (abs($b[0]-$b[1]) > 0 && abs($b[1]-$b[2])>0) { $count++; } if ($count == 4) { echo "Yes"; } } if ($count !== 4) { echo "No"; } } ?>