PHp get day in date
date('w'); //gets day of week as number(0=sunday,1=monday...,6=sat)
//note:returns 0 through 6 but as string so to check if monday do this:
if(date('w') == 1){
echo "its monday baby";
}// Prints the day
echo date("l") . "<br>";
Also in PHP:
- file_get_contents php ssl
- collection empty laravel
- check laravel version
- create new project in laravel
- current+date+php
- find a file in php
- add errors php
- can we find like directorries in php
- array_push in php
- 12:30 am time format validation in laravel
- clear laravel webapp cache
- date convert timestamp to date php
- display error php
- check is home page
- date time to timestamp php
- add 1 day to date php
- How to check if fwrite failed php
- developer polyglots
- codeigniter last insert id example
- $pdo= new PDO(
- array unicode php
- check number is divisible by 3 php
- arr::plunk laravel
- cookie phpsessid will be soon treated as cross-site cookie against