Skip to content

Instantly share code, notes, and snippets.

@hoorayimhelping
Created October 28, 2014 13:50
Show Gist options
  • Save hoorayimhelping/9173dab63fe964b7f60a to your computer and use it in GitHub Desktop.
Save hoorayimhelping/9173dab63fe964b7f60a to your computer and use it in GitHub Desktop.
$x = new DateTime();
if ($x->diff) { echo "diff"; } else { echo "no"; }
// outputs no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment