Tagged articles
5 articles
Page 1 of 1
php Courses
php Courses
Jan 17, 2024 · Backend Development

Understanding PHP 8 Readonly Properties: Definition, Benefits, and Usage

PHP 8 introduces readonly properties that can only be set during object initialization, providing immutable, constant-like behavior useful for defining constants, protecting sensitive data, and enhancing code safety, with examples showing initialization, immutability, consistency, and even getter/setter usage.

Backend DevelopmentCode ExamplesPHP
0 likes · 6 min read
Understanding PHP 8 Readonly Properties: Definition, Benefits, and Usage
Laravel Tech Community
Laravel Tech Community
Dec 27, 2021 · Backend Development

New Features in PHP 8.1

The article outlines PHP 8.1’s major enhancements—including enums, readonly properties, advanced callable syntax, fibers, intersection types, never return type, final class constants, octal literals, and performance improvements—providing code comparisons that illustrate the new syntax and behavior.

8.1EnumsFibers
0 likes · 9 min read
New Features in PHP 8.1
21CTO
21CTO
Nov 26, 2021 · Backend Development

What’s New in PHP 8.1? Enumerations, Read‑only Properties, Fibers and More

The PHP 8.1 release introduces enumerations, first‑class read‑only properties, the never return type, array_is_list, Fibers and other enhancements while also outlining deprecations and the newly formed PHP Foundation that supports the language’s future development.

Fibersbackend-developmentenumerations
0 likes · 5 min read
What’s New in PHP 8.1? Enumerations, Read‑only Properties, Fibers and More
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.

Object-Orienteddtophp-8.1
0 likes · 7 min read
PHP 8.1 Readonly Properties: Usage, Rules, and Practical Examples
Qunar Tech Salon
Qunar Tech Salon
Feb 12, 2015 · Fundamentals

Highlights of Visual Basic 14: Null‑Safety, Interpolation, and Other New Language Features

The article reviews the most notable Visual Basic 14 enhancements—including the null‑conditional operator, CallerNameAttribute, string interpolation, multi‑line strings, readonly auto‑properties, improved namespace resolution, preprocessor directives, and XML documentation support—illustrating each feature with clear VB code examples.

String InterpolationVB.NETlanguage features
0 likes · 13 min read
Highlights of Visual Basic 14: Null‑Safety, Interpolation, and Other New Language Features