Re: class packages
| From: | Alex Hogan | Date: | Wed, 08 Sep 2004 15:10:04 +0000 |
| Subject: | Re: class packages | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196133@lists.php.net to get a copy of this message | ||
> Do you define the class?:
>
> class help.Search {
> }
No..,
In your example you are defining the search class in the Help
namespace, just like you would in ActionScript.
I don't think you can do that in php.
You would just use;
class Search{
// do stuff here
}
You can extend the class using;
class subSearch extends Search{
// do stuff here
}
alex hogan