Re: PHP Interview questions
| From: | CPT John W. Holmes | Date: | Tue, 26 Aug 2003 19:34:30 +0000 |
| Subject: | Re: PHP Interview questions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160845@lists.php.net to get a copy of this message | ||
From: "Curt Zirzow" <php-general@zirzow.dyndns.org>
> toggle_light(1);
> sleep(120);
> toggle_light(1);
>
> toggle_light(2);
> move('self', 'room/');
>
> if ($lightbulb['temp'] > $room['temp']) {
> echo "switch #1";
> } elseif ($lightbulb['ison']) {
> echo "switch #2";
> } else {
> echo "switch #3";
> }
>
> hm.. i had to keep it OT somehow :)
Aren't you missing a foreach($lightbulb as $bulb) in there somewhere?
---John Holmes...