Re: [PHP] PHP Brain Teasers [SPOILER]



On 6/29/07, clive <clive@xxxxxxxxxx> wrote:
ok this one should be easy:

<?
$animal = array ("pig","cow","bat","chicken","dog");
for ($i = 0; $i < sizeof($animal); $i++) {
$sighted = ($animal[$i] != "bat" ? "see" : "blind");
}
?>

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



Blind as a bat.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
.



Relevant Pages

  • Re: [PHP] scaling images
    ... //upload the images script ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ... Daniel P. Brown ...
    (php.general)
  • Re: [PHP] variable array name
    ... array is called dynamically. ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ... Daniel P. Brown ...
    (php.general)
  • Re: [PHP] Re: PHP Brain Teasers
    ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ... Daniel P. Brown ...
    (php.general)
  • Re: [PHP] Gmail Account Invites (Want One?)
    ... Daniel P. Brown ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ...
    (php.general)
  • Re: [PHP] PHP debugger
    ... </Daniel P. Brown> ... Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ...
    (php.general)