What is the advantage to using Objects in PHP 5?

jumpingrightin

New member
PHP has Arrays, but sometimes they are Objects like in SimpleXML. What is the purpose of using Objects instead of Arrays? What is the advantage? Is there a way to notate that something is an Object instead of doing a print_r or vardump on it?
 
Back
Top