day of the week 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";
}check here link: http://www.eltcalendar.com/stuff/datemysqlphp.html
Also in PHP:
- Syntax error or access violation: 1071 Specified key was too long; max key length is 3072 bytes laravel string length 1000
- date(Y m d)
- create custom image size wordpress
- Your Composer dependencies require a PHP version ">= 7.2.0". You are running 7.1.30
- current date in phph
- If is home page
- create new record via model in laravel
- check error in php
- eliminate duplicate characters in array php
- 'PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 282624 bytes)
- PHP test if text contains subsrting and if so replace it
- Uncaught ReferenceError: commonL10n is not defined
- dsiplay array on php
- array key exist php
- echo in console php
- array remove duplicate values php
- clear cache from admin panel laravel
- Search or Filter Data in GridView c#
- composer create-project laravel/laravel 8
- e_all error php
- condition for both of one should be true laravel eloquent
- check contain word php
- Laravel display the date the participation was created
- add php var to js console log