Y-m-d H:i:s O format
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:
- How do you clear cache in Laravel?
- check lenght phph
- create a random string in php
- date format change in laravel blade
- associtive array php
- "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 401952768 bytes)"
- enable all errors php
- age date de naissance php
- array_key_exists() function
- TEXT UPPER PHP
- cache issue laravel
- codeigniter get insert iditer print last query
- ext dom php
- buscar texto dentro de php
- displayl errors in php
- encrypt decrypt php
- db seed specific seeder
- add console script in phpcode
- create new laravel project 8
- check key exists in associative array in php
- Undefined variable: subcopy laravel mail
- artisan clear cahce
- PHP debug console print
- clear all cache laravel server