PHP Date Exercises : Convert the date to timestamp
PHP date: Exercise-6 with Solution
Write a PHP script to convert the date to timestamp.
Sample date : 12-05-2014
<?php $timestamp = strtotime('12-05-2014'); echo $timestamp."\n"; ?>
PHP Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?