RE: [PHP] Re: PHP Brain Teasers
| From: | Jay Blanchard | Date: | Wed, 27 Jun 2007 14:21:23 +0000 |
| Subject: | RE: [PHP] Re: PHP Brain Teasers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257862@lists.php.net to get a copy of this message | ||
[snip]
I like this one:
<?php
for ($i = "an"; $i=="an"; );
?>
[/snip]
Wow, that is a stumper. Here is another, should be quite simple;
<?php
function think($i) {
TRUE == $i ? 'self-aware' : 'cow';
$return($x);
}
?>