note 122249 deleted from function.error-get-last by kalle

From: Date: Fri, 02 Oct 2020 09:21:31 +0000
Subject: note 122249 deleted from function.error-get-last by kalle
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215505@lists.php.net to get a copy of this message
Note Submitter: Ral Carbonneau ---- Here is an easy way to add the human readable constant name for an error type: $e = error_get_last(); $e['type_name'] = array_search($e['type'], get_defined_constants()); echo($e['type_name']); // Example result for error type 15: E_COMPILE_ERROR

« previous php.notes (#215505) next »