PHP Calculating Date Interval With Strtotime() – String Function

<?php
$birthday = 'March 10, 2010';
$whoopee_made = strtotime("$birthday - 9 months ago");
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.