2
PHP Hata işleme: die () Vs trigger_error () Vs throw İstisna
PHP'de Hata işleme ile ilgili olarak - Bildiğim kadarıyla 3 stil vardır: die()veya exit()stil: $con = mysql_connect("localhost","root","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } throw Exception stili: if (!function_exists('curl_init')) { throw new Exception('need the CURL PHP extension. Recomplie PHP with curl'); } trigger_error() stili: if(!is_array($config) && isset($config)) …
119
error-handling
php