Tag

array-functions

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
May 21, 2025 · Backend Development

PHP array_intersect() Function: Syntax, Parameters, Return Value, and Examples

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.

PHParray-functionsarray_intersect
0 likes · 3 min read
PHP array_intersect() Function: Syntax, Parameters, Return Value, and Examples
php中文网 Courses
php中文网 Courses
Apr 15, 2025 · Backend Development

Understanding PHP 8.4’s array_find Function: Syntax, Comparison, Performance, and Use Cases

The article examines PHP 8.4’s new array_find function, detailing its syntax, comparing it with traditional loops, array_filter, and custom implementations, highlighting performance benefits, showcasing practical use cases, discussing developer opinions, and positioning it among similar features in other modern languages.

PHPPerformancearray-functions
0 likes · 6 min read
Understanding PHP 8.4’s array_find Function: Syntax, Comparison, Performance, and Use Cases
php中文网 Courses
php中文网 Courses
Mar 24, 2025 · Backend Development

8 Essential PHP Functions for Efficient Table Processing

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.

Backend DevelopmentCSVJSON
0 likes · 6 min read
8 Essential PHP Functions for Efficient Table Processing
php中文网 Courses
php中文网 Courses
Mar 11, 2025 · Backend Development

New Features and Improvements in PHP 8.4

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.

JITMatch ExpressionPHP
0 likes · 8 min read
New Features and Improvements in PHP 8.4
Laravel Tech Community
Laravel Tech Community
Dec 12, 2024 · Backend Development

New Features in PHP 8.4.1: Property Hooks, Asymmetric Visibility, Deprecation Attributes, Ext‑DOM Enhancements, BCMath Object API, and New array_* Functions

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 VisibilityPHPPHP 8.4
0 likes · 5 min read
New Features in PHP 8.4.1: Property Hooks, Asymmetric Visibility, Deprecation Attributes, Ext‑DOM Enhancements, BCMath Object API, and New array_* Functions
php中文网 Courses
php中文网 Courses
Nov 27, 2024 · Backend Development

New Features in PHP 8.4: Property Hooks, Asymmetric Visibility, Array Functions, Simplified Instantiation, Explicit Nullable Types, and Lazy Objects

PHP 8.4 introduces property hooks, asymmetric visibility, new array functions, simplified object instantiation, explicit nullable types, and lazy objects, providing cleaner syntax, better control, and performance improvements for developers across skill levels.

PHPProperty Hooksarray-functions
0 likes · 7 min read
New Features in PHP 8.4: Property Hooks, Asymmetric Visibility, Array Functions, Simplified Instantiation, Explicit Nullable Types, and Lazy Objects
php中文网 Courses
php中文网 Courses
Nov 21, 2024 · Backend Development

New Features in PHP 8.4: Property Hooks, Asymmetric Visibility, Bracket‑less Method Chains, New Array Functions and Core Improvements

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 VisibilityBackend Development
0 likes · 6 min read
New Features in PHP 8.4: Property Hooks, Asymmetric Visibility, Bracket‑less Method Chains, New Array Functions and Core Improvements
php中文网 Courses
php中文网 Courses
Nov 21, 2024 · Backend Development

PHP in_array() Function: Syntax, Parameters, and Practical Examples

This tutorial explains the PHP in_array() function, detailing its syntax, parameter meanings—including optional strict type checking—and provides three practical code examples demonstrating basic existence checks, strict type comparisons, and searching associative arrays to retrieve corresponding keys.

Backend DevelopmentPHParray-functions
0 likes · 5 min read
PHP in_array() Function: Syntax, Parameters, and Practical Examples
php中文网 Courses
php中文网 Courses
Nov 13, 2024 · Backend Development

PHP array_intersect() Function: Syntax, Parameters, Return Value, and Examples

This article explains PHP's array_intersect() function, detailing its syntax, required and optional parameters, return value, and provides multiple code examples demonstrating how it extracts common elements from two or more arrays.

Backend DevelopmentPHParray-functions
0 likes · 4 min read
PHP array_intersect() Function: Syntax, Parameters, Return Value, and Examples
php中文网 Courses
php中文网 Courses
Aug 30, 2024 · Backend Development

New Features and Changes in PHP 8.4 Release (Nov 21, 2024)

PHP 8.4, released on November 21, 2024, introduces performance, usability, and security enhancements such as property hooks, a parenthesis‑free new operator, powerful array functions, an HTMLDocument class, new Sodium algorithms, a request parsing helper, stricter type declarations, JIT optimizations, and migration of several extensions to PECL.

HTML5Performancearray-functions
0 likes · 3 min read
New Features and Changes in PHP 8.4 Release (Nov 21, 2024)
php中文网 Courses
php中文网 Courses
Aug 20, 2024 · Backend Development

Using PHP’s array_key_first() Function to Retrieve the First Array Key

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.

Backend DevelopmentPHPPHP 7.3
0 likes · 3 min read
Using PHP’s array_key_first() Function to Retrieve the First Array Key
php中文网 Courses
php中文网 Courses
Aug 6, 2024 · Backend Development

Using array_key_first() in PHP 7.3: Syntax, Examples, and Use Cases

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.

PHPPHP7.3array-functions
0 likes · 3 min read
Using array_key_first() in PHP 7.3: Syntax, Examples, and Use Cases
php中文网 Courses
php中文网 Courses
Jul 15, 2024 · Backend Development

Understanding PHP's array_key_first() Function: Syntax, Usage, and Examples

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.

PHPPHP7.3array-functions
0 likes · 3 min read
Understanding PHP's array_key_first() Function: Syntax, Usage, and Examples
php中文网 Courses
php中文网 Courses
Jul 11, 2024 · Backend Development

Using PHP array_keys() Function: Syntax, Parameters, and Practical Examples

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.

Backend DevelopmentPHParray-functions
0 likes · 5 min read
Using PHP array_keys() Function: Syntax, Parameters, and Practical Examples
php中文网 Courses
php中文网 Courses
Mar 8, 2024 · Backend Development

Using PHP's array_keys() Function: Syntax, Parameters, and Practical Examples

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
Using PHP's array_keys() Function: Syntax, Parameters, and Practical Examples
php中文网 Courses
php中文网 Courses
Jan 4, 2024 · Backend Development

Common PHP Functions for Searching and Filtering Data

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.

FilterPHPSearch
0 likes · 4 min read
Common PHP Functions for Searching and Filtering Data
php中文网 Courses
php中文网 Courses
Jul 12, 2023 · Backend Development

Using PHP array_unshift, array_push, and array_splice to Insert Elements

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-arrayprogramming
0 likes · 4 min read
Using PHP array_unshift, array_push, and array_splice to Insert Elements