Tag

PHP 8.1

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Aug 22, 2024 · Backend Development

Understanding PHP 8.1 Fibers: Concepts, Usage, and Practical Examples

This article explains PHP 8.1's Fibers feature, describing how they enable lightweight cooperative multitasking, showing basic and advanced code examples for non‑blocking I/O, parallel API/database calls, and large‑file processing, and discusses benefits, use‑cases, and important limitations.

Non-blocking I/OPHP 8.1asynchronous
0 likes · 12 min read
Understanding PHP 8.1 Fibers: Concepts, Usage, and Practical Examples
php中文网 Courses
php中文网 Courses
Nov 17, 2021 · Backend Development

Array Unpacking with String Keys in PHP 8.1

PHP 8.1 introduces support for array unpacking with string keys, extending the previous numeric‑key only capability, by defining merge semantics that prioritize later values, and the article demonstrates usage with code examples and links to the RFC for further details.

Array UnpackingPHP 8.1String Keys
0 likes · 2 min read
Array Unpacking with String Keys in PHP 8.1
php中文网 Courses
php中文网 Courses
Nov 12, 2021 · Backend Development

PHP 8.1 Readonly Properties: Usage, Rules, and Practical Examples

This article explains PHP 8.1's new readonly property feature, shows how it differs from previous DTO patterns, demonstrates proper syntax, outlines restrictions such as type requirements and inheritance rules, and provides cloning work‑arounds with code examples for backend developers.

DTOPHP 8.1Readonly Properties
0 likes · 7 min read
PHP 8.1 Readonly Properties: Usage, Rules, and Practical Examples