ive got an object that looks like this with print_r():
SimpleDOM Object ( [0] => continent )
i wonder how i could get the continent as a string?
i have tried gettype($object[0]);
it still says its an object.
i just want to get the string “continent”.
Is this SimpleDOM the one you’re using?
If so, it looks like that value would be stored in the
_Element::$tagNamevariable. So maybe try this?