0 && $val < 12346) { return true; } return false; } function endPg($result) { echo $result."\n"; exit; }