Posted by rich on 08/10/06 15:13
l3vi501@gmail.com wrote:
> Something like this?
>
> class foobar
> {
> var $foo = "hi";
> function show_foo()
> {
> $bar = $this->{"foo"};
> echo $bar;
> }
> }
>
> $smt = new foobar();
> $smt->show_foo();
$this->{"foo"}; is exactly what i was looking for.. (providing it
works when I try it tonight)
Thanks!!
Navigation:
[Reply to this message]
|