Snippets tagged “dynamic-properties”
2 snippets use this tag.
- How to add property to object in PHP >= 5.3 strict mode without generating errorPHP
In PHP >= 5.3, you can use the Object::$strictProperties property to enable or disable strict property checking for an object.
- How to create new property dynamicallyPHP
In PHP, you can create a new property for an object dynamically by using the magic method __set.