From: "Curt Zirzow" <[EMAIL PROTECTED]>
> 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...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php