<?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());
}
?>