Forum

What is the magic m...
 
Notifications
Clear all

What is the magic method __ set?


(@elias)
Illustrious Member
Joined: 5 months ago
Posts: 4277
Topic starter  

What is the magic method __ set?


   
Quote
(@elias)
Illustrious Member
Joined: 5 months ago
Posts: 4277
Topic starter  

What is the magic method __ set?The __set() magic method is triggered when trying to write data to inaccessible properties. Whereas, the __set() method parameters have the following meaning: $name : This is the name of the property being interacted with. $value : This is the value that the $name property should be set to.


   
ReplyQuote
Share: