SyntaxFix
Write A Post
Hire A Developer
Questions
In PHP 7 anonymous objects can be created this way:
$res = new class { public $success = false; };
https://www.php.net/manual/en/language.oop5.anonymous.php http://sandbox.onlinephpfunctions.com/code/ab774707a8219c0f35bdba49cc84228b580b52ee