Re: PHP Brain Teasers [SPOILER]
| From: | Daniel Brown | Date: | Fri, 29 Jun 2007 14:24:01 +0000 |
| Subject: | Re: PHP Brain Teasers [SPOILER] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-257958@lists.php.net to get a copy of this message | ||
On 6/29/07, clive <clive@rttc.co.za> wrote:
ok this one should be easy: <? $animal = array ("pig","cow","bat","chicken","dog"); for ($i = 0; $i < sizeof($animal); $i++) {Blind as a bat. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107$sighted = ($animal[$i] != "bat" ? "see" : "blind");} ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php