<?php
class Foo {
public function __get($var_name) {
return str_replace('_', ' ', $var_name);
}
}
$foo = new Foo();
if (empty($foo->haunting_ghost)) { // language construct
echo $foo->haunting_ghost;
}
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
haunting ghost