RE: [PHP] Re: PHP Brain Teasers

From: Date: Thu, 12 Jul 2007 15:25:51 +0000
Subject: RE: [PHP] Re: PHP Brain Teasers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-258707@lists.php.net to get a copy of this message
[snip] > >> <? > >> $evil[] = "6"; > >> $evil[] = "6"; > >> $evil[] = "6"; > >> for($i=0;$i<count($evil);$i++) { > >> $_ = sqrt($evil); > >> } > >> ?> It was supposed to be "money is the root of all evil," but the code above wouldn't work correctly anyway, as each time through the for() loop it'll try to get the square root of the array. [/snip] The actual quote is "the love of money is the root of all evil", so you need to find the root of love.

« previous php.general (#258707) next »