class foo()
{
var $bar;
function foo()
{
$this->bar="whatever";
}
}
Are you talking about the var $bar; part? Why would you do that?
If you create a new class and want to echo $bar, you'd have to do it this way, correct??
$obj = new foo();
echo $obj->bar;
//Should echo "whatever"
Maybe I'm missing something.....
---John Holmes