Assignment: Day of the Weeks ($$$)
create a program named: DayOfWeek.php
Use the expression date("w") which will return 0 for Sunday, 1 for Monday, etc. up to 6 for Sunday to indicate the current day in your program.
Use if's or a switch statement to then output the current date's name of each day in another language.
For example, in spanish:
Monday would be Lunes
Tuesday would be Martes
Wednesday would be Miércoles
Thursday would be Jueves
Friday would be Viernes
Saturday would be Sábado
and Sunday would be Domingo
The program should output a statement like this:
Today is Tuesday, and this is called Martes in Spanish.
The part in blue should be the current day. So if you run your program on Wednesday, it would be the names for Wednesday.
If you do a different language than Spanish, please change the last word of the output to be the language.
publish your file to topic2 and submit your link to the file here.
Use the expression date("w") which will return 0 for Sunday, 1 for Monday, etc. up to 6 for Sunday to indicate the current day in your program.
Use if's or a switch statement to then output the current date's name of each day in another language.
For example, in spanish:
Monday would be Lunes
Tuesday would be Martes
Wednesday would be Miércoles
Thursday would be Jueves
Friday would be Viernes
Saturday would be Sábado
and Sunday would be Domingo
The program should output a statement like this:
Today is Tuesday, and this is called Martes in Spanish.
The part in blue should be the current day. So if you run your program on Wednesday, it would be the names for Wednesday.
If you do a different language than Spanish, please change the last word of the output to be the language.
publish your file to topic2 and submit your link to the file here.