How to Get Current date in PHP

Get actual date in PHP- To get the actual date also known as today’s date use the date() function that returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given.

$actualDate = date('Y-m-d');