'f' means in date [h[
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:
- exception is thrown php
- eloquent get query log
- Crypto.HashPassword in php
- add() in php
- create a new project laravel
- acf post object
- composer get php version
- delete cache on host laravel
- add factory data laravel
- date today in datetime php
- date php day of wekk
- @return throw exception php
- 1054 unknown column 'updated_at' in 'field list' laravel
- autocomplete new-password php
- artisan migrate single class
- console.log in pgp
- associative array php
- How to create WordPress users programmatically
- 2 days in php
- check isset key in array php
- To add a new Top-level menu to WordPress Administration, use the add_menu_page() function.
- composer global require laravel/installer version 5.61
- 'PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 282624 bytes)
- check if a word exist in a string php