PHP code example of shasoft / dump
1. Go to this page and download the library: Download shasoft/dump library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shasoft / dump example snippets
function s_dump_error(string $title, \Exception|\Error $e) {...}
//--------------------------------------------------------------------------------
try {
throw new \Exception('Тест');
} catch (\Exception $e) {
s_dump_error('Исключение ' . get_class($e), $e);
exit(1);
} catch (\Error $e) {
s_dump_error('Ошибка ' . get_class($e), $e);
exit(2);
}