date php get nb day week
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:
- associative array example
- find str in string php
- check array for duplicate values php
- datetime format
- create folder with php
- create laravel migration
- catch an exception php
- create php laravel project
- catch custom exception php
- display page template using functions.php
- eliminate duplicate characters in array php
- check if table exists sql php
- add date ti particular date in php
- fatch time from database and add in current time in php
- array filter php get first object
- clear caches in laravel
- find all files in directory php
- duplicate in array in php
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in \xampp\htdocs\
- CONNECT TO MYPHP DATABASE FROM connection .php
- Tests\Feature\BlogTest > user can delete post 162 Illuminate\Encryption\MissingAppKeyException No application encryption key has been specified.
- $_Server php
- exception is thrown php
- check method in laravel