php - Display value of specific element from multi dimensional array -
please help, how can display posts site_id 1
below multidimensional array , display comma separated 4295, 4289, 4298, 4292
print_r($favorites); array ( [0] => array ( [site_id] => 1 [posts] => array ( [0] => 4295 [1] => 4289 [2] => 4298 [3] => 4292 ) [groups] => array ( [0] => array ( [group_id] => 1 [site_id] => 1 [group_name] => default list [posts] => array ( [0] => 4295 [1] => 4289 [2] => 4298 [3] => 4292 ) ) ) ) )
Comments
Post a Comment