Hi all,
I have this object:
Which the print_r produces:PHP Code:$time_periods_array = json_decode($data_array[$row_number]['project_timeperiods']);
But it just won't give me any result (error) on:PHP Code:stdClass Object ( [timeperiod1-1] => 1 12:00 AM [timeperiod1-2] => 3 12:30 AM [timeperiod1-3] => A.M. Peak Hour [timeperiod_totaltime] => 0.5 )
So, how do I print an element from it? Thank you in advance for your help.PHP Code:echo $time_periods_array['timeperiod1-1'];
Dhimoet


Reply With Quote


Bookmarks