সম্পাদনা
<?php function page($url) { if ($url == "") { throw new Exception("page not found", 200); } return $url; } try { echo page("tutorial/php/home") . PHP_EOL; echo page(""); } catch (Exception $error) { echo $error->getCode() . PHP_EOL; echo $error->getMessage(); } ?>
পূর্বরূপ