How-to articles, tricks, and solutions about PROPERTIES

Get PHP class property by string

In PHP, you can use the $ operator to access an object's properties by name.

How does the @property decorator work in Python?

In Python, the @property decorator is used to define a method as a "getter" for a class property.

How to create new property dynamically

In PHP, you can create a new property for an object dynamically by using the magic method __set.

Reading Properties file in Java

To read a properties file in Java, you can use the Properties class from the java.util package.