note 128058 added to errorfunc.constants

From: Date: Mon, 26 Dec 2022 21:41:44 +0000
Subject: note 128058 added to errorfunc.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-220013@lists.php.net to get a copy of this message
Get all defined error constants (can work if new errors follow the same pattern as starting with "E_") $constants = get_defined_constants(true)["Core"]; $errors = array_filter($constants, function ($key) { return strpos($key, 'E_') === 0; }, ARRAY_FILTER_USE_KEY); echo "<pre>" . print_r($errors, true) . "</pre>"; ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.175 (proxied: 41.251.146.107) ---- Manual Page -- https://php.net/manual/en/errorfunc.constants.php Edit -- https://main.php.net/note/edit/128058 Del: integrated -- https://main.php.net/note/delete/128058/integrated Del: useless -- https://main.php.net/note/delete/128058/useless Del: bad code -- https://main.php.net/note/delete/128058/bad+code Del: spam -- https://main.php.net/note/delete/128058/spam Del: non-english -- https://main.php.net/note/delete/128058/non-english Del: in docs -- https://main.php.net/note/delete/128058/in+docs Del: other reasons-- https://main.php.net/note/delete/128058 Reject -- https://main.php.net/note/reject/128058 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220013) next »