At this point, if you executed that script, I'd suspect it would print out:
I'm guessing you know nothing about arrays...
All the activities are contained in the $activities array, so to get each activity you need to reference the element using its corresponding index:
PHP Code:
$index = 0; //or any other number
$activity = $activities[$index];
To get ALL the values out of the array, which is what you seem to want, you have to loop through it:
PHP Code:
$message .= "Activities: \n";
foreach ($activities as $index=>$activity) {
$message .= $activity."\n";
}
Or if you want all the activities on the same line, separated by a comma, you can use the implode() function:
PHP Code:
$message .= "Activities: " . implode(',', $activities) . "\n\n";
Hope that helps,
Sadiq.