Tagged articles
array functions
24 articles · Page 1 of 1
This guide explains how to use PHP's count(), array_count_values(), and array_filter() functions, along with loops, to count total elements, distinct values, and specific element occurrences in an array, providing clear code examples for each method.
array functionsarrayscounting
0 likes · 4 min read

PHP 8.5 introduces a suite of powerful enhancements—including the pipeline operator, native array_first/array_last functions, a new URI extension, closure recursion support, constant expression closures, fatal error backtraces, INI diff mode, #[NoDiscard] attribute, clone overrides, and a build‑date constant—plus four key deprecations.
8.5New FeaturesPipeline
0 likes · 8 min read

This article explains PHP’s array_shift() function, showing its syntax, how it removes and returns the first element of both indexed and associative arrays, updates the original array’s keys, and provides clear code examples with expected output.
PHParray functionsarray_shift
0 likes · 4 min read

Learn how PHP’s array_key_exists function checks for the existence of specific keys in arrays, see practical code examples, compare its behavior with isset when handling null values, and understand when to use each function for reliable array key validation.
array functionsarray_key_existsisset
0 likes · 5 min read

PHP 8.5 introduces the native array_first() and array_last() functions, offering a safe, pointer‑free way to retrieve the first or last element of any array, improving readability, reducing bugs, and aligning PHP with modern language practices for developers and frameworks alike.
BackendPHPPHP 8.5
0 likes · 5 min read

PHP 8.5, slated for release in November 2025, introduces handy array helpers, a left‑to‑right pipe operator, getters for error and exception handlers, a cURL multi‑handle retrieval function, RTL locale detection, a build‑date constant, and a CLI option to show only modified INI settings, all aimed at improving developer experience and debugging.
PHP 8.5Pipe Operatorarray functions
0 likes · 5 min read

This article explains PHP's array_intersect() function, detailing its syntax, required and optional parameters, return value, and provides three practical code examples with outputs to illustrate how it extracts common elements from multiple arrays.
BackendPHParray functions
0 likes · 3 min read

This article introduces eight useful PHP functions—including array_map, array_column, array_filter, array_reduce, fgetcsv, str_getcsv, implode, and json_encode/json_decode—to help developers efficiently manipulate table data from databases or CSV files, improving performance and code maintainability.
PHParray functionsbackend development
0 likes · 6 min read

The article reviews PHP 8.4's major enhancements—including JIT compiler optimizations, new array_find and array_find_key functions, an enhanced match expression, str_contains_any/all utilities, nullsafe operator upgrades, enum type extensions, and overall performance and stability improvements—helping developers adopt the latest capabilities for more efficient backend development.
EnumJITPHP
0 likes · 8 min read

PHP 8.4.1 introduces a suite of backend improvements—including property hooks, asymmetric visibility, deprecation attributes, a spec‑compliant DOM API, an object‑oriented BCMath API, and several new array_* functions—each illustrated with concise code examples and usage notes.
Asymmetric VisibilityBCMathBackend
0 likes · 5 min read

PHP 8.4, released ahead of schedule, introduces Property Hooks for elegant getters/setters, asymmetric visibility for differing access levels, bracket‑less method chains, new array functions like array_find(), and core improvements such as enhanced HTML5 support and clearer null handling, making it a significant upgrade for backend developers.
8.4Asymmetric VisibilityPHP
0 likes · 6 min read

This article explains PHP's array_intersect() function, covering its syntax, required and optional parameters, return value, and provides three detailed code examples that demonstrate how to extract common elements from multiple arrays.
Code Examplesarray functionsarray_intersect
0 likes · 4 min read

Introduced in PHP 7.3, the array_key_first() function returns the first key of an array, with examples showing its usage, handling of empty arrays, and an alternative approach using array_keys() for older PHP versions.
PHP 7.3array functionsarray_key_first
0 likes · 3 min read

Introduced in PHP 7.3, the array_key_first() function returns the first key of an array or null for an empty array, and this article explains its syntax, demonstrates usage with code examples, and discusses practical scenarios such as retrieving the first key and checking if an array is empty.
Backendarray functionsarray_key_first
0 likes · 3 min read

This article introduces PHP 7.3's new array_key_first() function, explains its syntax, demonstrates usage with examples for retrieving the first key and checking for empty arrays, discusses practical scenarios, and highlights precautions when arrays contain null values.
Backendarray functionsarray_key_first
0 likes · 3 min read

This article explains the PHP array_keys() function, detailing its syntax, optional parameters, and demonstrating its use with three code examples that cover indexed, associative, and multidimensional arrays, helping developers retrieve array keys efficiently.
array functionsarray_keysbackend development
0 likes · 5 min read

This article explains PHP's array_keys() function, detailing its syntax, optional parameters, and demonstrating its use with indexed, associative, and multidimensional arrays through clear code examples and output illustrations.
PHPTutorialarray functions
0 likes · 5 min read

This article introduces essential PHP functions such as strpos, strstr, in_array, array_search, htmlspecialchars, and filter_var, providing clear explanations and example code to help developers efficiently search, filter, and validate strings, arrays, and input data.
PHPString Functionsarray functions
0 likes · 4 min read

This article introduces several essential PHP array functions—including array_push, array_pop, array_shift, array_unshift, and array_reverse—explaining their usage, parameters, and effects with clear code examples to help developers manipulate arrays efficiently.
BackendPHParray functions
0 likes · 4 min read

This tutorial demonstrates how PHP's array_unshift, array_push, and array_splice functions can be used to insert single or multiple elements at the beginning, end, or arbitrary positions of an array, with example code and output illustrations.
array functionsphp-array
0 likes · 4 min read

The article explains PHP's current() function, describing its purpose of returning the value of the array element pointed to by the internal pointer without moving it, detailing its parameters, return values, and providing practical code examples demonstrating usage with various pointer operations.
array functionscurrent
0 likes · 2 min read

This article explains the PHP function array_intersect_assoc(), describing its purpose, parameters, return value, and provides a complete example with code that demonstrates how it returns the intersection of arrays while preserving key associations.
array functionsarray_intersect_assoc
0 likes · 2 min read

This article demonstrates how to use JsonPath's built‑in functions such as $.ss.min(), $.ss.max(), $.ss.avg(), $.ss.stddev(), $.ss.length() and $.ss.sum() to compute minimum, maximum, average, standard deviation, length and sum of JSON array elements, providing Java code examples and expected console output.
BackendJSONarray functions
0 likes · 6 min read

This guide explains how PHP's array_filter, array_map, array_walk, and array_reduce functions work, showing code examples that replace manual loops, improve performance, and simplify common array operations for backend developers.
BackendPHParray functions
0 likes · 5 min read
