[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... ?php $x = rand( 1, 20 ); for( $i = 0; $i $x; $i++ ); while( --$i 0 ); ?

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... ?php $x = rand( 1,