Home > PHP > Creating default object from empty value

Error Message: Creating default object from empty value

Solution:
Change
$object->name = 'myhelper';

Into
$object = new stdClass();
$object->name = 'myhelper';

$object->name = 'myhelper';
$object = new stdClass();
$object->name = 'myhelpe



Flag Counter