সম্পাদনা
<?php function user($name) { if ($name == "") { throw new Exception("ডেটা পাওয়া যায়নি"); } return $name; } try { echo user(""); } catch (Exception $error) { echo $error->getMessage(); } ?>
পূর্বরূপ