PHP Multi-Dimensional Arrays Issue

nicotoma

New Member
Ok I have a mult-dimensional array which has the following structure...\[code\] 0 => array ( 'membership' => array ( 'member' => array ( 'name' => '', 'landline' => '', 'libcard' => '', 'mobile' => '', 'email' => '', ), 'updated_at' => '', 'member_id' => 12345, 'starts_at' => '', 'id' => 14, 'group_id' => 280, 'optional_field_values' => array ( 0 => array ( 'optional_field' => array ( 'name' => '', 'updated_at' => '', 'id' => 1, 'group_id' => 280, 'description' => '', 'created_at' => '', ), 'updated_at' => '', 'optional_field_id' => 1, 'membership_id' => 14, 'id' => 4, 'value' => '12539267', 'created_at' => '', ), ), 'ends_at' => '', 'joining_fee' => 0, 'created_at' => '', ), ),\[/code\]Now I can access everything inside Membership and inside Member using code like...\[code\]$member[0]['membership']['member']['name']or $member[0]['membership']['joining_fee']\[/code\]But when ever I try to access stuff inside optional_field_values I get nothing returned... Any ideas why this is not working?Edit: Trying to access the field using code like...\[code\]$member[0]['membership']['optional_field_values']['value']\[/code\]
 
Back
Top