php get current data code example
Example 1: php current date get
date_default_timezone_set('Asia/Kolkata');
echo date("Y-m-d H:i:s"); // time in India
Example 2: date now php
date("Y-m-d H:i:s");
date_default_timezone_set('Asia/Kolkata');
echo date("Y-m-d H:i:s"); // time in India
date("Y-m-d H:i:s");