Advertisement
Guest User

Dynom

a guest
Jan 25th, 2010
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2. // Cool native comparing with objects !
  3. $dateStart = new DateTime('yesterday');
  4. $dateEnd = new DateTime('tomorrow');
  5. @@if ($dateEnd < $dateStart) {
  6.     echo 'Woops, reverse order!';
  7. } else {
  8.     echo 'All good, carry on.';
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement