How may I convert my function to show the last and/or the second last digit in the "Y" tag?
Here is my code:
<?php
$timestamp = time(); //Timestamp from server
$user_time = 1597429549; //Timestamp from database
$time = ($user_time-$timestamp); // Should be around 4 years
echo gmdate("Y m d H i s", $time); //This will output 1974 10 20 19 59 34
?>
How can I convert this to display time as:
4 10 20 19 59 34 or 0004 10 20 19 59 34
Instead of:
1974 10 20 19 59 34