This is a discussion on Re: [PHP] PHP Brain Teasers [SPOILER] - PHP ; 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++) { > $sighted = ($animal[$i] != "bat" ? "see" : "blind"); ...
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++) {
> $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