
Error when calling PHP function
By:
dominornovus on
Oct 17th, 2012 | syntax:
PHP | size: 0.24 KB | hits: 33 | expires: Never
<?php
//http://stackoverflow.com/a/12944764/835950
$older = "2012-11-01";
$newer = "2012-12-25";
get_timespan_string($older, $newer);
// Produces this error: "Fatal error: Call to a member function format() on a non-object[...]"
?>