how to get current time with php code example
Example 1: php get current time and date
date("Y-n-j G:i:s");
//-->2020-10-29 23:27:15
Example 2: date now php
echo date('c');
// 2015-07-27T00:00:00+02:00
date("Y-n-j G:i:s");
//-->2020-10-29 23:27:15
echo date('c');
// 2015-07-27T00:00:00+02:00