If print_r($object)returns
print_r($object)
stdClass Object ( [*] => sometext )
How to get the property of an asterisk, i.e. $object->*?
$object->*
You can access this property.
$object->{"*"}
It works,
print_r($object->{'*'});
Simply
print_r($object->{"*"});
You can also convert your object to an array:
$array = get_object_vars($object); echo $array['*'];
But the answers above are even better: