What are some common formatting options for displaying timestamps in PHP?

When working with timestamps in PHP, it is common to need to format them in a human-readable way. Some common formatting options for displaying timestamps include using the date() function with various format parameters such as 'Y-m-d H:i:s' for a full date and time display or 'F j, Y, g:i a' for a more readable format. These options allow you to customize the appearance of timestamps in your PHP applications.

// Example of formatting a timestamp in PHP
$timestamp = time(); // Get the current timestamp
$formatted_date = date('Y-m-d H:i:s', $timestamp); // Format the timestamp as 'Y-m-d H:i:s'
echo $formatted_date; // Output the formatted timestamp