how to get an objects property

Posted by fayer on Stack Overflow See other posts from Stack Overflow or by fayer
Published on 2010-03-24T18:24:50Z Indexed on 2010/03/24 18:33 UTC
Read the original article Hit count: 200

Filed under:

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".

© Stack Overflow or respective owner

Related posts about php