Re: Re: PHP Brain Teasers

From: Date: Thu, 12 Jul 2007 15:02:36 +0000
Subject: Re: Re: PHP Brain Teasers
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-258703@lists.php.net to get a copy of this message
On 7/12/07, Colin Guthrie <gmane@colin.guthr.ie> wrote:
Thijs Lensselink wrote:
<? $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.
Thank _God_ it's Friday??? Covering all bases are we? ;)
No, I said, "thank God it's ALMOST Friday." Nothing to do with the puzzle, I'm just exhausted this week for some reason. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107

« previous php.general (#258703) next »