What is the correct syntax for formatting the date in PHP to display as "Tuesday, February 14th, 2006 (08:43:14 AM)"?

To format the date in PHP to display as "Tuesday, February 14th, 2006 (08:43:14 AM)", you can use the date() function along with the 'l, F jS, Y (h:i:s A)' format string. This format string specifies the desired output format with the day of the week, month, day, year, time in 12-hour format, and AM/PM indicator.

$date = date('l, F jS, Y (h:i:s A)', strtotime('2006-02-14 08:43:14'));
echo $date;