RE: Re: PHP Brain Teasers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
> <?php
> 
> function think($i) {
> 	TRUE == $i ? 'self-aware' : 'cow';
> 	$return($x);
> }
> 
> ?> 

I'd hazard a guess at "I think therefore I am", but looking at it it
seems more like...

    If I think then I'm self-aware otherwise I'm a cow, but regardless
of my thinking I'm nothing.
[/snip]

Yep, the problem was that if I coded this; 

<?php
 
 function think($i) {
 	TRUE == $i ? 'am' : 'am not';
 	$return($i);
 }
 
?>

Would have been a dead giveaway, no?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux