Php terms
The engine behind the web's most-used server-side language
PHP powers an enormous portion of the web — from WordPress and Laravel to custom e-commerce platforms. This category covers the language internals, core functions, OOP features, type system, performance patterns, and PHP-specific quirks that every serious PHP developer should understand deeply. Whether you are writing procedural scripts or building full-stack applications with modern PHP 8.x features, these terms form the foundation.
Named Arguments (PHP 8.0) PHP 8.0+
PHP 8.0 named arguments let you pass values by parameter name — skipping optional params, self-documenting calls, and enabling out-of-order argument passing.
2mo ago
php beginner
Named Arguments in Attributes PHP 8.1+
PHP 8.1+ allows named arguments inside attribute constructors — #[Route(path: '/home', methods: ['GET'])] — making attribute usage self-documenting.
2mo ago
php intermediate
new in Initializers (PHP 8.4) PHP 8.4+
PHP 8.4 allows 'new ClassName()' expressions in default parameter values, attribute arguments, and static property initialisers — removing the need for null defaults combined with late assignment in constructors.
2mo ago
php intermediate
Null Coalescing ?? Operator (PHP 7.0) PHP 7.0+
PHP 7.0's ?? operator returns the left side if it exists and isn't null, otherwise the right — replacing isset($x) ? $x : $default with $x ?? $default.
2mo ago
php beginner
Null Reference Errors PHP 5.0+
Errors caused by calling methods or accessing properties on null — PHP's 'Call to a member function X() on null' and JavaScript's 'Cannot read properties of null' are the most common runtime errors in both languages.
2mo ago
php beginner
number_format() & money_format() PHP 4.0+
number_format() formats a number with grouped thousands and a specified number of decimal places — the correct way to display prices, statistics, and large integers in PHP. money_format() was deprecated in PHP 7.4 and removed in PHP 8.0.
2mo ago
php beginner
Namespaces Introduced in PHP 5.3 PHP 5.3+
PHP 5.3 (2009) introduced namespaces with the namespace keyword and backslash separator — enabling PSR-4 autoloading and modern package management with Composer.
2mo ago
php beginner
Named Arguments (PHP 8.0) PHP 8.0+
Pass arguments to a function by parameter name rather than position, improving readability and allowing optional parameters to be skipped.
2mo ago
php beginner
Named Arguments in Built-in PHP Functions PHP 8.0+
PHP 8.0 named arguments work with built-in functions — enabling readable calls to functions with many optional parameters like array_slice().
2mo ago
php intermediate
Named Arguments with Spread Operator PHP 8.1+
Combining PHP 8.0 named arguments with the ... spread operator to unpack associative arrays as named parameters.
2mo ago
php intermediate
Named Constructor Pattern PHP 5.0+
Static factory methods with descriptive names that replace overloaded constructors — making object creation intent clear when multiple creation paths exist.
2mo ago
php intermediate
never Return Type (PHP 8.1) PHP 8.1+
Declares that a function never returns normally — it always throws an exception or calls exit(), helping static analysers prove code paths.
2mo ago
php intermediate
never Return Type (PHP 8.1) PHP 8.1+
Declaring a function's return type as never signals it always throws or exits — enabling static analysers to prune unreachable code branches.
2mo ago
php intermediate
Null Coalescing Operator (??) PHP 7.0+
Returns the left operand if it exists and is not null, otherwise the right — cleaner than isset() ternary chains.
2mo ago
php beginner
Nullable Types (?Type) PHP 7.1+
Declaring a type as ?Type allows either a value of that type or null — shorthand for Type|null.
2mo ago
php beginner
Nullsafe Operator (?->) PHP 8.0+
Chains method calls and property accesses on potentially-null objects without nested null checks; returns null on the first null encounter.
2mo ago
php beginner
Nullsafe Operator Chaining (?->) PHP 8.0+
PHP 8.0's ?-> short-circuits an entire method chain to null when any step returns null — eliminating nested null checks.
2mo ago
php intermediate