Re: PHP5 Packages
| From: | Melvyn Sopacua | Date: | Tue, 09 Jul 2002 17:00:28 +0000 |
| Subject: | Re: PHP5 Packages | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85865@lists.php.net to get a copy of this message | ||
At 17:19 9-7-2002, Zeev Suraski shared with all of us:
So, now the (re-)usable one: class foo {How does this differ from: $this->db = new dbclient;It's completely different. It addresses scoping issues, and gives you the same functionality as namespaces. For example: class foo {class bar { function method1() { } };}; to call method1() externally, you would have to use something like foo::bar::method1(). It's not directly related to object instaniation.
//some code
require('class_bar.php');
}
Will that work? That would be NEAT :-0
Met vriendelijke groeten / With kind regards,
IDG.nl
Melvyn Sopacua
Webmaster