Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php try catch


<?php

function test() {
    try {
        throw new Exception('foo');
    } catch (Exception $e) {
        return 'catch';
    } finally {
        return 'finally';
    }
}

echo test();
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #catch
ADD COMMENT
Topic
Name
3+4 =