I have a few different fields that I need to combine together after the form is posted.
Fieldnames are as follows:
camps[camp_notes][field1]
camps[camp_notes][field2]
Code:
foreach ($camps['camp_notes'] as $key => $value)
{
$camps['camp_notes'] .= $key.': '.$value."\n";
unset($camps['camp_notes'][$key]);
}
Output I am receiving...
Arraygrade: 12 age: 21 years_experience: 10
I thought by unsetting the sub-array, it would no longer be an array? I need to get rid of the word 'Array'.