Can you clarify this with some code? I donβt understand what you are trying to accomplish.
You can call a function on an object as follows:
public function IsEmpty() { return ($this->prop1 == null && $this->prop2 == null && $this->prop3 == null); }
Codecaster
source share