Advertisement
Viper007Bond

Untitled

Aug 30th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. // Real code
  2.  
  3. function Just_Married() {
  4.     if ( 'Las Vegas' == $location && time() - 24 * 3600 < $marriedtime ) {
  5.         annulment();
  6.         $bachelor = true;
  7.     } else {
  8.         $bachelor = false;
  9.     }
  10. }
  11.  
  12.  
  13. // Less useful code but easier to understand
  14.  
  15. function Just_Married() {
  16.     if ( 'Las Vegas' == $location && $twentyfour_hours_ago < $marriedtime ) {
  17.         annulment();
  18.         $bachelor = true;
  19.     } else {
  20.         $bachelor = false;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement