echo date in php
$today = date("F j, Y, g:i a"); // October 30, 2019, 10:42 pm
$today = date("D M j G:i:s T Y"); // Wed Oct 30 22:42:18 UTC 2019
$today = date("Y-m-d H:i:s"); // 2019-10-30 22:42:18(MySQL DATETIME format)/**
* Its always best to use a datetime object
*/
$dateTime = new \DateTime();
/**
* You can get the string by using format
*/
$dateTime->format('Y-m-d H:i:s');
Also in PHP:
- PHP text string contains character
- display_errors php.ini
- array unique removing key
- clear cahce config laravel in cpanel
- convert uppercase in php
- activity log spatie
- composer global in laravel means
- create project laravel 7 ?
- display errors in php
- chow to check which php version running wordpress
- acf group
- current time in php
- To add a new Top-level menu to WordPress Administration, use the add_menu_page() function.
- associtive array php
- check array is associative laravel
- am and pm in php
- /laravel-2020-07-27.log" could not be opened
- filer validation in laravel
- e_notice in php
- Adding or Subtracting Time
- after for each loop in php
- csv to json php
- clear cache laravel ubuntu terminal
- character lenght php