Q:

Showing the ouput of a multidimensional array

I am pretty new in php. I am trying to print a data from an array.I have googled for it but can't find any solution yet. 
Array ( [0] => stdClass Object ( [id] => 2  [university_name] => UNIV_NAME [university_id] => 1 [year] => 2010 )

Here i want to print just the "UNIV_NAME ".How can i get UNIV_NAME as output. 

A:

echo $array[0]->university_name

