note 5562 deleted from Classes and Objects by ronabop
| From: | ronabop@php.net | Date: | Thu, 17 Aug 2000 09:59:43 +0000 |
| Subject: | note 5562 deleted from Classes and Objects by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2162@lists.php.net to get a copy of this message | ||
How can I access a class from another class?
Like this:
<pre>class a {
function 1 {
echo "Hello";
}
}</pre>
And there is also another class called b, like this:
<pre>class b {
function 2 {
a->1();
}
}
</pre>
Can I access the a class with the function in the b class? if both classes are in use, I mean.