Re: Happy New Year All!
| From: | Robert Cummings | Date: | Thu, 31 Dec 2009 16:52:20 +0000 |
| Subject: | Re: Happy New Year All! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300759@lists.php.net to get a copy of this message | ||
Paul Scott wrote:
Bipper Goes! wrote:Oh dear... that's terribly inefficient... Here's a better stab: <?php sleep( strtotime( '2009-12-31 23:59:50' ) - time() ); for( $i = 10; $i >= 0; $i-- ) {return ThankYou; Oh god I think I blowed it up.I prefer: <?php while(date('Y') < 2010) ; exit (' Happy New Year');
echo $i ? "$i...\n" : "HAPPY NEW YEAR!\n";
sleep( 1 );
}
?>
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP