Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 16:01 +0100, Stut wrote: Robert Cummings wrote: On Wed, 2007-06-27 at 09:52 -0500, Jay Blanchard wrote: Ignoring the extra $ and moving on... I would code it like this... function think($i) { $i = 'am'; } If I call think, then I am thinking, therefore

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Daniel Brown
Hooray! I started a thread that's been able to get beyond 40 posts, and it's not a flame war of wit or a CAPTCHA discussion. This may be a bit nested and obscure, but it's actually a quote we see on the list quite often and I get a kick out of it each time I see it. ? if(!$trust) {

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Tijnema
On 6/27/07, Daniel Brown [EMAIL PROTECTED] wrote: Hooray! I started a thread that's been able to get beyond 40 posts, and it's not a flame war of wit or a CAPTCHA discussion. haha, the CAPTCHA discussions were nice :) This may be a bit nested and obscure, but it's actually a quote we

Re: [PHP] Re: PHP Brain Teasers

2007-06-26 Thread Daniel Brown
On 6/26/07, Dan [EMAIL PROTECTED] 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? Colin Guthrie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Daniel Brown wrote: What

Re: [PHP] Re: PHP Brain Teasers

2007-06-26 Thread Robert Cummings
On Wed, 2007-06-27 at 00:24 +0100, Colin Guthrie wrote: Daniel Brown wrote: What the hell? Why not start a thread that can be fun and challenging for all of us. It's something I haven't seen done Here's another quickie: Dead simple one! ?php function x($x) { switch ($x) {

<    1   2