+ 1

What day it is PhP function

I need a php function that will tell which day it is. I want to use it in my code that would execute a specific code function based on the current day.

19th Aug 2017, 7:35 AM
Issah Mudasir
Issah Mudasir - avatar
2 odpowiedzi
+ 1
// Prints something like: Saturday echo date("l");
19th Aug 2017, 8:54 AM
Calviղ
Calviղ - avatar
+ 1
Yea I got that, date('l'); does the job right
19th Aug 2017, 9:01 AM
Issah Mudasir
Issah Mudasir - avatar