Q:

Write a PHP script to convert the date to timestamp

0

Write a PHP script to convert the date to timestamp.

Sample date : 12-05-2014

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

Sample Output:

1399833000

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now