Voting

Please answer this simple SPAM challenge: min(five, seven)?
(Example: nine)

The Note You're Voting On

mlaopane at gmail dot com
4 months ago
<?php

/**
* You can catch exceptions thrown in a deep level function
*/

function employee()
{
    throw new \
Exception("I am just an employee !");
}

function
manager()
{
   
employee();
}

function
boss()
{
    try {
       
manager();
    } catch (\
Exception $e) {
        echo
$e->getMessage();
    }
}

boss(); // output: "I am just an employee !"

<< Back to user notes page

To Top