Question: Assume you have an array called $dates which are in the format DD/MM/YYYY. The array is indexed by keys. For example the array might look

 Assume you have an array called $dates which are in the

Assume you have an array called $dates which are in the format DD/MM/YYYY. The array is indexed by keys. For example the array might look something like: $days = array("key1" => "05/16/2010", "some_date" => "04/02/1990", "four" => "05/06/2007"); Write a snippet of PHP that creates the following XHTML table out of the data provided in the $days array Each row of the table should correspond to an array entry. The first cell of each row has the date from the array and the second cell has the corresponding weekday. For our example the table would look like the one below. Of course the actual table depends on the $days array given

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!