Bulgaria PHP Conference 2019

Voting

Please answer this simple SPAM challenge: one minus one?
(Example: nine)

The Note You're Voting On

Mohammad Hossein Darvishanpour
3 years ago
<?php
function Test_Extention($var1)
{
    if(
$var1 == false)
    {
        throw new
Exception('Invalid !');
    }
}
//end function

try
{
   
Test_Extention(false);
   
printf("%s","Valid");
}

catch(
Exception $e)
{
   
printf("%s","Message : " . $e->getMessage());
}
?>

<< Back to user notes page

To Top