I think I have to answer to this one: 'If at first you don't succeed try, try again'.

Eric

<?

function at($level) {
       $level == 10 ? $ret = "winner" : '';
       $level == 15 ? $ret = "try" : '';
       $level == 20 ? $ret = "first" : '';
       $level == 25 ? $ret = "user" : '';
       $level == 30 ? $ret = "place" : '';
       $level == 35 ? $ret = "again" : '';
       $level == 40 ? $ret = "succeed" : '';
       $level == 45 ? $ret = "last" : '';
       $level == 50 ? $ret = "finish" : '';
       return $ret;
}

if(at(20) != "succeed") {
       try {
               $e = "again";
               throw new Exception($e);
       } catch(Exception $e) {
               echo "Try ".$e->getMessage()."\n";
       }
}
?>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to