Y-m-d H:
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 in laravel putty
- error in migration laravel
- base64 file php
- convert uppercase to capitalize in php
- create custom pagination in laravel 7 for api
- date inphp
- Laravel route not calling function of controller
- base64 encode username password php example
- elementor hide button if input empty
- check datatype of variable in php
- /phpspreadsheet requires ext-dom * centos yum
- 7 reasons why Lee is an idiot
- display error warning php
- PHP Deprecated: Function create_function()
- Warning: func_get_arg() expects exactly 1 parameter, 0 given in
- array_column in php
- clear docker cache
- displayl errors in php
- creating a laravel project with composer
- How to check beautify json result using php
- Str::random
- base decode 64 php
- change php version ubuntu
- clear view cache laravel