Is there a PHP function that returns the date and time in the same format as the MySQL function NOW()?
NOW()
I know how to do it using date(), b
date()
MySQL function NOW() returns the current timestamp. The only way I found for PHP is using the following code.
$curr_timestamp = date('Y-m-d H:i:s');