Hi..
I have written this small piece of code on class but i give error
<?
class try
{
var $i;
var $j;
function try()
{
$i=10;
$j=20;
}
function iSum($a, $b)
{
$res=$a + $b + $this->i + $this->j;
return $res;
}
}
$ctry=new try;
echo $ctry->iSum(10,13);
?>
It give undefine symbol i and j in iSum() function;
Got any idea