<?
class foo {
var $value;
var $child = array();
function setChild($ch) {
array_push($this->child,$ch);
}
function getChild($i) {
return $this->child[$i];
}
function getValue() {
return $this->value;
}
}
$tp = new foo();
$row = new foo();
$row->setChild($tp);
$row->getChild(0)->getValue();
?>
When I run this script i get the error
Parse error: parse error, unexpected T_OBJECT_OPERATOR in \\path\to\file on line 26
on line "$row->getChild(0)->getValue();"
can someone help me out here..??
Thanx
Salil
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Salil Das | It's ok to kiss a fool,
bugs@cc | It's ok to let a fool kiss you,
| but never ever let a kiss fool you.