I have a question on calling a method in PHP.
suppose I have file class1.php which contains class1
$this->a1 = "hello";
in test.php I have the ff:
$obj = new class1();
$a = "test";
die("this is $a message=$obj->t1()");
The message displayed is always:
this is test message=()
instead of :
this is test message=hello
is there another way of doing it aside from:
$x = $obj->t1();
die("this is $a message=$x");
Thanks in advance,
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
pgsql-php by date
|Next:||From: Ludwig Lim||Date: 2003-06-12 12:05:21|
|Subject: A question on method calling in PHP|
|Previous:||From: Kurt||Date: 2003-06-10 22:27:05|