X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id C29E830E7BE for ; Thu, 12 Jun 2003 12:05:13 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 52807-10 for ; Thu, 12 Jun 2003 09:05:03 -0300 (ADT) Received: from web80507.mail.yahoo.com (web80507.mail.yahoo.com [66.218.79.77]) by svr1.postgresql.org (Postfix) with SMTP id C437730E802 for ; Thu, 12 Jun 2003 09:05:02 -0300 (ADT) Message-ID: <20030612120502.63422.qmail@web80507.mail.yahoo.com> Received: from [202.78.97.14] by web80507.mail.yahoo.com via HTTP; Thu, 12 Jun 2003 05:05:02 PDT Date: Thu, 12 Jun 2003 05:05:02 -0700 (PDT) From: Ludwig Lim Subject: Some Questions To: PostgreSQL-PHP Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200306/11 X-Sequence-Number: 2075 Hi: I have a question on calling a method in PHP. suppose I have file class1.php which contains class1 a1 = "hello"; } function t1() { return $this->a1; } } ?> in test.php I have the ff: 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