Re: [PHP] Re: PHP Brain Teasers (SPOILER)
Colin Guthrie wrote: > Jochem Maas wrote: >> Jochem Maas wrote: >>> three for the price of one, cheap at half the price ... >>> >>> for ($me = 1; $you = $me; $me++); > > One for me and one for you? correct! > Everything that is mine is yours? > To me, to you? > > >>> $u = create_function("\$bond", "if (\$bond < 2) echo \"live\"; else die();") >>> $u();$u();$u(); >> this one here should have been: >> >> $u = create_function("\$bond", "if (\$bond < 3) echo \"live\"; else die();") >> $u(1);$u(2);$u(3); > > I started thinking it was "Live and Let Die" but then I realised I had > the wrong movie and it's actually "You only live Twice". WHich is good > cos Connery was a far better bond than Moore! eggzactly ;-) > >>> $I = null; sleep(10); $I = rear(); function rear() {}; > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP Brain Teasers (SPOILER + new one)
On Wed, 2007-06-27 at 09:26 +0100, Colin Guthrie wrote: > Robert Cummings wrote: > > On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: > >> I think I have to answer to this one: 'If at first you don't succeed try, > >> try again'. > > > > Here's another one... > > > > > > > $x = rand( 1, 20 ); > > for( $i = 0; $i < $x; $i++ ); > > while( --$i > 0 ); > > > > ?> > > "There and back again"? Nope, but close. > How about: > > > while(2 && "beyond"); > > ?> To infinity and beyond! Go Buzz, GO! :) Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Brain Teasers (SPOILER + new one)
Robert Cummings wrote: > On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: >> I think I have to answer to this one: 'If at first you don't succeed try, >> try again'. > > Here's another one... > > > $x = rand( 1, 20 ); > for( $i = 0; $i < $x; $i++ ); > while( --$i > 0 ); > > ?> "There and back again"? How about: Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Brain Teasers (SPOILER)
Dan wrote: > How are we going to respond to these? Should we answer or just kepe > them to ourselves. > > > SPOILER** > > Answer: Many a mickle makes a muckle? SPOILER in the title is a good idea! I was going for "Mony a mickle maks a muckle" hence the name of my constant, but I'll give you it :p Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php