pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedSome Questions
2+ messages / 2 participants
[nested] [flat]
* Some Questions
@ 2003-06-12 12:05 Ludwig Lim <lud_nowhere_man@yahoo.com>
2003-06-12 12:44 ` Re: Some Questions Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
0 siblings, 1 reply; 2+ messages in thread
From: Ludwig Lim @ 2003-06-12 12:05 UTC (permalink / raw)
To: pgsql-php
Hi:
I have a question on calling a method in PHP.
suppose I have file class1.php which contains class1
<?
class class1{
var $a1;
function class1()
{
$this->a1 = "hello";
}
function t1()
{
return $this->a1;
}
}
?>
in test.php I have the ff:
<?
include("class1.php");
$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,
ludwig lim
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Some Questions
2003-06-12 12:05 Some Questions Ludwig Lim <lud_nowhere_man@yahoo.com>
@ 2003-06-12 12:44 ` Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
0 siblings, 0 replies; 2+ messages in thread
From: Cornelia Boenigk @ 2003-06-12 12:44 UTC (permalink / raw)
To: Ludwig Lim <lud_nowhere_man@yahoo.com>; pgsql-php
Hi Ludwig
die("this is $a message= ".$obj->t1());
or
$msg = $obj->t1();
echo("this is $a message $msg");
works.
Regards
Conni
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-06-12 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-12 12:05 Some Questions Ludwig Lim <lud_nowhere_man@yahoo.com>
2003-06-12 12:44 ` Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox