Re: newbie question about code
| From: | ash@ashleysheridan.co.uk | Date: | Fri, 10 Sep 2010 18:43:12 +0000 |
| Subject: | Re: newbie question about code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-307930@lists.php.net to get a copy of this message | ||
It's object oriented code. $code is an instance of class, and do_command() is a method if that
class. I'd advise reading up on oop php.
Thanks,
Ash
http://www.ashleysheridan.co.uk
----- Reply message -----
From: "Adam Williams" <adam_williams@bellsouth.net>
Date: Fri, Sep 10, 2010 19:27
Subject: [PHP] newbie question about code
To: "PHP General list" <php-general@lists.php.net>
I'm looking at someone's code to learn and I'm relatively new to
programming. In the code I see commands like:
$code->do_command();
I'm not really sure what that means. How would that look in procedural
style programming? do_command($code); or something else?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php