3 ms·
The difference with property hooks and userland getter/setters is that you're now just doing echo $obj->prop $obj->prop = 'bar'; not echo $obj->g
by joshmanders 2y ago
The difference with property hooks and userland getter/setters is that you're now just doing
echo $obj->prop
$obj->prop = 'bar';
not
echo $obj->getProp();
$obj->setProp('bar');