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 E6A9530E7BD for ; Thu, 12 Jun 2003 12:05:33 +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 48322-09 for ; Thu, 12 Jun 2003 09:05:23 -0300 (ADT) Received: from web80503.mail.yahoo.com (web80503.mail.yahoo.com [66.218.79.73]) by svr1.postgresql.org (Postfix) with SMTP id CA75830E7EB for ; Thu, 12 Jun 2003 09:05:22 -0300 (ADT) Message-ID: <20030612120522.81223.qmail@web80503.mail.yahoo.com> Received: from [202.78.97.14] by web80503.mail.yahoo.com via HTTP; Thu, 12 Jun 2003 05:05:21 PDT Date: Thu, 12 Jun 2003 05:05:21 -0700 (PDT) From: Ludwig Lim Subject: A question on method calling in PHP To: PostgreSQL-PHP Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200306/12 X-Sequence-Number: 2076 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