Timestamp manipulation in PHP using `time()` and `DateTime`.
// Get current timestamp $now = time(); echo $now;
// String to timestamp $ts = strtotime("2024-01-01 00:00:00 UTC");
// Timestamp to readable format echo date('Y-m-d H:i:s', 1704067200);