Re: [PHP] Re: PHP Brain Teasers (SPOILER)

2007-07-04 Thread Jochem Maas
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("\$bo

Re: [PHP] Re: PHP Brain Teasers (SPOILER + new one)

2007-06-27 Thread Robert Cummings
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

[PHP] Re: PHP Brain Teasers (SPOILER + new one)

2007-06-27 Thread Colin Guthrie
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

[PHP] Re: PHP Brain Teasers (SPOILER)

2007-06-26 Thread Colin Guthrie
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'l