Is this possible
| From: | James Edgar | Date: | Thu, 06 Jun 2002 05:32:45 +0000 |
| Subject: | Is this possible | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-100888@lists.php.net to get a copy of this message | ||
I am trying to run a class inside a class, it says that the object is there but when I go to get the
info, it is not there. I have attached the code below and attache the xml.inc file. Any help would
be greatly appreciated.
class myClass
{
function myFunc($var)
{
include("xml.inc");
$obj = new xml($data,"xml");
if (is_object($obj))
{
print("Yes"); // It will print this
}
else
{
print("No");
}
///////// below we will see the status of the result ////////
for($i=0;$i<sizeof($xml["Whatever"]);$i++)
{
$varvalue = $xml["Whatever_whatever"][$i]->Whatever[0] . "\n";
}
echo($varvalue); // Does not echo anything.
} // end func
} // end class