PHP Exercise and solutions: Displaying date to timestamp – codzhub

Display date to timestamp

Solution:

PHP Code:

<?php
$timestamp = strtotime('12-05-2014');
echo $timestamp."\n";
?>

Leave a Reply

Your email address will not be published. Required fields are marked *