echo date display week days php
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:
- ajax to php call
- DateTime TO UNIx timestamp PHP
- add a snippet in twig shopware 6
- base 64encryption is not happening in php
- echo all error
- ! array_key_exists php
- add password php file
- add day for date php
- check if substring exists in string php\
- check index type in php
- Illuminate\Contracts\Container\BindingResolutionException Target class [PagesController] does not exist.
- best way to redirect with php
- check day of the week php
- enable php error
- decode base 64 php
- ALTER table migrations
- create project laravel 6
- cache clear laravel dosent work
- datetime add days php
- disable updated_at laravel
- create laravel project command
- Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 18874368 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/Repository/ComposerRepository.php on line 588
- explain date function in php
- check if astring is apart of another string in php