Re: Re: PHP Brain Teasers
| From: | Jochem Maas | Date: | Tue, 03 Jul 2007 23:03:57 +0000 |
| Subject: | Re: Re: PHP Brain Teasers | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258208@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
> three for the price of one, cheap at half the price ...
>
> for ($me = 1; $you = $me; $me++);
>
> ----------------
>
> $u = create_function("\$bond", "if (\$bond < 2) echo \"live\"; else
> die();")
> $u();$u();$u();
this one here should have been:
$u = create_function("\$bond", "if (\$bond < 3) echo \"live\"; else
die();")
$u(1);$u(2);$u(3);
>
> ----------------
>
> $I = null; sleep(10); $I = rear(); function rear() {};
>