We can access and modify private property outside the class by using PHP ReflectionProperty. Although it has no practical use case in the real world, we should know and be aware of it. #PHP_short_tips
Shamim Shakir’s Post
More Relevant Posts
-
The ultimate PHP RSS feed parser library The quest is over - I have found the perfect PHP library for parsing RSS and Atom feeds. I present you SimplePie. My 202...... https://lnkd.in/g4QnK5sc
To view or add a comment, sign in
-
If you wonder why I created phpkg, read this article.
Comparing phpkg and Composer: What’s New?
link.medium.com
To view or add a comment, sign in
-
Formidable Forms Enthusiasts - Free code snippet to Easily Create PHP Variables for Every Form Field https://lnkd.in/eNmTpzJh
To view or add a comment, sign in
-
🚀 PHP 8.4 is almost here! Get ready for Asymmetric Property Visibility, a cool feature that changes how properties can be accessed and modified. It lets you choose different levels of access for reading and writing data. Keep an eye out for more updates!
Asymmetric Property Visibility in PHP 8.4 - Laravel News
To view or add a comment, sign in
-
PHP 8.4's Asymmetric Property Visibility is a game-changer! It lets you set different access levels for reading and writing properties, enhancing encapsulation and reducing boilerplate. Perfect for cleaner, more secure code! 🚀
🚀 PHP 8.4 is almost here! Get ready for Asymmetric Property Visibility, a cool feature that changes how properties can be accessed and modified. It lets you choose different levels of access for reading and writing data. Keep an eye out for more updates!
Asymmetric Property Visibility in PHP 8.4 - Laravel News
To view or add a comment, sign in
-
Changing default behaviour of checkbox in filament php for single choice question. When check one option as correct answer then another one will be unchecked if it was checked before. #laravel #filamentphp
To view or add a comment, sign in
-
💡 PHP Tip: Make your code more flexible with `union types`! 🔩 Use `|` to specify multiple types for a single parameter or property, allowing for more flexibility. Example: `function greet(string|int $name): string { ... }` 🤩 Write more robust and adaptable code! #PHPTips #UnionTypes
To view or add a comment, sign in
-
A Quickstart Tutorial on PHP Generators To optimize memory usage, the crwlr/crawler library leverages PHP's Generators. If you want to write a custom step for y...... https://lnkd.in/gKaG-mGz
LaraChat Articles - A Quickstart Tutorial on PHP Generators
larachat.co
To view or add a comment, sign in
-
Just published a new article on PHP 8’s match expression and how it simplifies conditional logic. Check it out here! https://lnkd.in/g_MmtW6M #PHP8 #Match_statement
To view or add a comment, sign in
-
🚀 PHP 8.4 introduces Property Hooks that let you define custom get/set hooks directly on properties, eliminating boilerplate code. 🧑💻 Save time and improve readability by handling property logic right where it belongs! #PHP8 #WebDev #PHPFeatures
To view or add a comment, sign in