Object In a class
| From: | Justin Mazzi | Date: | Sun, 09 Feb 2003 19:29:49 +0000 |
| Subject: | Object In a class | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134963@lists.php.net to get a copy of this message | ||
Can anyone tell me how to use an object within an object. Example
class blah {
var $test;
var $test2;
function test() {
$this->do();
}
}
then you want to use that class in a new one.
class blah2 {
var $test;
var $test2;
function do() {
$blah = new blah();
}
}
What I want to do is run some mysql queries(mysql class) in a class I
made.