Class storage questions
| From: | IThelp | Date: | Wed, 10 Jan 2001 19:42:08 +0000 |
| Subject: | Class storage questions | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4909@lists.php.net to get a copy of this message | ||
I have two classes. Class box is basically a sub class that is only called
from the Class Print. The problem is I would like to have an array in Class
Print that will store instances of Class box.
example
class Print{
var arrayofboxes = array();
//other stuff
$tempbox = $this->arrayofboxes[0]; //supposed to load a box
$tembox->getinfo();
}
class Box{
box(){
//various info
}
getinfo(){
}
//other stuff
}
When I go to unload the box out of array into $tempbox nothing is there.
Where happened that instance and where can I get the info about that class.
ryan