day of week echo $(date +%F.%H%M%S)
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:
- current url wordpress
- array unique values
- detect find char in string php position
- cappitalize string in php
- check if strlen more than 10 laravel
- How to fix undefined index: name in PackageManifest.php line 131 error with Composer
- find a specific word in a string and add another string after that specific word php
- What parameter should you enable if you wish for your browser to show all errors?
- cache eloquent laravel 8
- Allowed memory size of 1610612736 bytes exhausted larave lvalet composer
- convert html code php
- filter elementor
- create model, controller and migration in single command laravel
- App\\Http\\Controllers\\DB' not found
- define header in different file php
- convert date to timestamp in php
- do you need to clear cache laravel
- create date from string php
- (1/1) RuntimeException The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
- In Connection.php line 664:SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema
- console in php
- collection map laravel
- DateTime::add() php
- contain string php