Re: PHP Brain Teasers
| From: | clive | Date: | Fri, 29 Jun 2007 07:24:41 +0000 |
| Subject: | Re: PHP Brain Teasers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257944@lists.php.net to get a copy of this message | ||
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");
}
?>