How To Print Timestamp In Php

[Solved] How To Print Timestamp In Php | Php - Code Explorer | yomemimo.com
Question : Getting Current Timestamp in PHP

Answered by : prashant-rawal

<?php
$current_timestamp = time();
echo $current_timestamp;
?>

Source : https://phppot.com/php/php-timestamp/ | Last Update : Sat, 30 Jul 22

Question : php timestamp

Answered by : matteo-puppis

<?php
$nextWeek = time() + (7 * 24 * 60 * 60);
                   // 7 days; 24 hours; 60 mins; 60 secs
echo 'Now:       '. date('Y-m-d') ."\n";
echo 'Next Week: '. date('Y-m-d', $nextWeek) ."\n";
// or using strtotime():
echo 'Next Week: '. date('Y-m-d', strtotime('+1 week')) ."\n";
?>

Source : https://www.php.net/manual/en/function.time.php | Last Update : Thu, 30 Apr 20

Question : timestamp php

Answered by : dead-donkey-nnfcrcjz6cft

<?php
$date = date_create();
echo date_timestamp_get($date);
?>

Source : https://www.php.net/manual/fr/datetime.gettimestamp.php | Last Update : Fri, 18 Sep 20

Answers related to how to print timestamp in php

Code Explorer Popular Question For Php