Monday, August 4, 2014

KeoFlex PHP Tutorial 13/13 - Final Solution



Try this yourself before watching the video

In this challenge we need to make a program for a task list. This list should be an array of 3 task locations including

At Home, At Store, and At Work

Each on of these should have a value that is an array of several items. This will require a nested foreach loop. This will be difficult but try your best before watching the solution video. This array will be a "Multidimensional Associative Array".

When looping through the Task locations echo them as an HTML h1

Your result should look like:

At Home


______________________________
laundry
dishes

At Store


______________________________
milk
bread
pasta

At Work


______________________________
change computer password
copy folder 1