Beginner terms
each() & list() — Deprecated Iteration PHP 3.0+
each() was deprecated in PHP 7.2 and removed in PHP 8 — replace while(list($k,$v)=each($arr)) with foreach. list() itself is still valid as [] destructuring.
2mo ago
php beginner
ereg() / eregi() — POSIX Regex Removed in PHP 7 PHP 3.0+
ereg() and eregi() were POSIX regex functions removed in PHP 7.0 — replace with preg_match() (PCRE) which is faster, more powerful, and the standard since PHP 4.
2mo ago
php beginner
Error Logging PHP 4.0+
Recording application errors, exceptions, and diagnostic information to persistent storage — essential for diagnosing production issues where display_errors must be off and errors are invisible to users.
2mo ago
php beginner
Error Reporting & Display PHP 4.0+
PHP's error_reporting level and display_errors directive control which errors are shown and where — development needs E_ALL with display on; production needs E_ALL with display off and logging on.
2mo ago
php beginner
Error.cause — Error Chaining ES2022
ES2022 added a cause option to the Error constructor — 'new Error('message', { cause: originalError })' — enabling proper error chaining where a high-level error wraps its underlying cause, preserving the full error context across abstraction layers.
2mo ago
javascript beginner
Exception Handling Introduced (PHP 5) PHP 5.0+
PHP 5 introduced try/catch/finally and the Exception class — replacing PHP 4's procedural error handling with structured exception-based patterns.
2mo ago
php beginner
Elvis Operator Not Used PHP 5.3+
Writing $x ? $x : $y instead of $x ?: $y — the Elvis operator (?:) returns the left operand if truthy, otherwise the right, eliminating the repeated expression.
2mo ago
style beginner
Error Suppression Operator (@) PHP 5.0+
Prefixing a PHP expression with @ silently suppresses all errors and warnings it generates — hiding bugs instead of handling them.
2mo ago
quality beginner
Excessive Blank Lines PHP 5.0+
Multiple consecutive blank lines within a function or between statements — adding visual noise without improving readability.
2mo ago
style beginner
EditorConfig for PHP Projects
A .editorconfig file enforces consistent indentation, line endings, and charset across all editors without relying on individual developer setup.
2mo ago
style beginner
Error Handling in PHP PHP 5.0+
Uncaught errors and verbose error output expose stack traces, file paths, and credentials to attackers.
CWE-209 OWASP A9:2021
2mo ago
php beginner
5.3
Automatically capturing, grouping, and alerting on application errors in production — with full stack traces, breadcrumbs, and user context.
2mo ago
observability beginner
ES Modules (import/export) ES2015
The standard JavaScript module system — static imports/exports enable tree-shaking, top-level await, and strict mode by default.
2mo ago
javascript beginner
extract() — Dangerous Variable Injection PHP 4.0+
extract() creates local variables from an array, allowing attackers to overwrite existing variables if input is unsanitised.
CWE-621 OWASP A3:2021
2mo ago
php beginner
9.8
Early Return Pattern
Exit a function as soon as the result is known rather than carrying state through the rest of the function body.
2mo ago
style beginner