date ('n')
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";
}
Also in PHP:
- date function plus 1 day php
- alert laravel 7
- application of laravel
- array_values() in php
- database seeding
- create a class in php
- current date time in php
- carbon add minutes
- Tests\Feature\BlogTest > user can delete post 162 Illuminate\Encryption\MissingAppKeyException No application encryption key has been specified.
- error_reporting( ~E_NOTICE )
- array_push php
- Str::slug laravel 8
- array reverse sequence pp
- check if esist key in array php
- clear memcache laravel'
- create random_str laravel
- errors off php
- date format create in php
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t oo long; max key length is 767 bytes
- datetime weekday php
- convert image to base64 php
- exception php throw
- $time=date("H:i");
- Seeding Laravel