Advertisement
dominornovus

Error when calling PHP function

Oct 17th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. <?php
  2.  
  3. //http://stackoverflow.com/a/12944764/835950
  4.  
  5. $older = "2012-11-01";
  6. $newer = "2012-12-25";
  7. get_timespan_string($older, $newer);
  8.  
  9. // Produces this error: "Fatal error: Call to a member function format() on a non-object[...]"
  10.  
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement