Re: Re: PHP Brain Teasers

From: Date: Fri, 04 Jan 2008 19:26:01 +0000
Subject: Re: Re: PHP Brain Teasers
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-266639@lists.php.net to get a copy of this message
On Jul 20, 2007 1:09 PM, Daniel Brown <parasane@gmail.com> wrote: > This isn't necessarily a brain-teaser, but it's still pretty cool. > Dice (the employment site) has a new advertisement out there that > says the following: > > ==== > What's missing from your job? > > <?php > format = 'The %2s contains %1d orders'; > printf(format, num, location); > ?> > ==== > > I thought it was a pretty simple form of genius, so to speak. They're baaaack! This was something that came to mind when discussing loop detection in language processing. <? function wheel($test) { if($test == 1) { return 1; } else { $insanity = "Same result."; wheel(0); } } wheel(0); ?> -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you.

« previous php.general (#266639) next »