Question: PHP. Write a script that assigns the days of the week to an associative array named daysEnglish. The keys in this arrays are referenced as

PHP. Write a script that assigns the days of the week to an associative array named daysEnglish. The keys in this arrays are referenced as Day1 Day7, the values are Sunday Saturday,

respectively.

Create another associative array, named daysFrench that contains the days of the week in French. Sunday is Dimanche, Monday is Lundi, Tuesday is Mardi, Wednesday is Mercredi,

Thirsday is Jeudi, Friday is Vendredi, and Saturday is Samedi.

use Regular Expressions to ensure that the user enters days in the valid format (Day 1 -Day 7).

asks the user to input the day they was born and displays an appropriate message. (ex. You were born on day 1 which is Sunday in English and Dimanche in French, no entry!, invalid entry: enter a valid day of the week (Day 1- Day 7))

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!