date inphp
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";
}// Prints the day
echo date("l") . "<br>";$currentYear=date("Y");//2019check here link: http://www.eltcalendar.com/stuff/datemysqlphp.html
Also in PHP:
- ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first! Considering conflict mpm_worker for mpm_prefork: ERROR: Could not enable dependency mpm_prefork for php7.2, aborting
- exception ph
- date() today php
- current datetime php
- display_errors php.ini
- count characters php
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". when php is 7.4
- alias seeddb='php artisan db:seed'
- Laravel image validation example
- Laravel route not calling function of controller
- Woocommerce custom Flat Rate charges (by ID) Function
- e_all error php
- artisan cache clear
- day in php time
- convert to base 64 php
- curl_init() in php
- clear cache php artisan
- encode and decode int to base64 using php
- display error on screen
- download laravel composer
- dynamic carousel bootstrap php
- clear cache in laravel in windows cmd
- PHP echo and print Statements
- date formatting php