PHP objects
Posted: Tue Jan 18, 2011 6:23 am
Hi all,
I have this object
I now wish to access this object directly.
Why cant I do something like this?
thanks
I have this object
Code: Select all
$my_data -> monthly_performance[$year]["M$m"][] = $xWhy cant I do something like this?
Code: Select all
if ($my_data -> monthly_performance[2009]["M1"][] != "")
{
do something
}