date( Y-m-d
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:
- clear cache terminal laravel
- Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
- Class 'App\Http\Controllers\Auth' not found
- date convert timestamp to date php
- find or fail laravel
- create model, controller and migration in single command laravel
- carbon add minutes
- Laravel 8 clear cache
- base64 conversion of an image php mysql
- capital letter php
- adding days to a date in php
- $db php
- check if value in string php
- execute seeder laravel
- array_key_exists in laravel
- check type of in php
- cpanel email to email send with php
- catching errors in php
- check if string contains substring at the start php
- do_shortcode
- count characters laravel
- datetime in php
- Laravel 8 seed
- $this in catch block php