current datetime 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)date("Y-n-j G:i:s");
//-->2020-10-29 23:27:15# Current date
date_default_timezone_set('Asia/Kolkata');
echo date("Y-m-d H:i:s");
# Current Time
date_default_timezone_set("America/New_York");
echo "The time is " . date("h:i:sa");
Also in PHP:
- connection error php default exception code
- convert date object to string php
- create a directory in php if not exists
- echo fread($myfile,filesize("webdictionary.txt"));
- enable php errors
- auto generate password in php on button click
- dates and time php
- find in php
- error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
- composer-php version check
- cahe laravel
- convert to string php
- create well formated json php
- divide page in pdf with page break using php
- extension ext_dom php
- clear all laravel caches
- Allowed memory size of 1610612736 bytes exhausted for laravel
- capitalise in php
- catch in php
- consolelog is it a thing in php
- Token capabilities in vault
- datetime print format php
- date / time formatter php
- Laravel DB Cache