RE: [PHP] calling a function inside a class
| From: | Vamsi Nath | Date: | Mon, 31 Jul 2000 11:17:15 +0000 |
| Subject: | RE: [PHP] calling a function inside a class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9142@lists.php.net to get a copy of this message | ||
Sure...
function X() {
$this->Y();
}
--Vamsi
http://php.vamsi.net
-----Original Message-----
From: Dana.Reed@clinicaldatacare.com
[mailto:Dana.Reed@clinicaldatacare.com]
Sent: Monday, July 31, 2000 9:10 AM
To: php-general@lists.php.net
Subject: [PHP] calling a function inside a class
Is there some trick for calling a function in a class from another function
in the same class? I'm getting a "Call to unsupported or undefined
function" error. Here's the general idea:
class oracle8 {
function X() { //call function Y here }
function Y() { ... }
}
Thanks for any help.
med vänlig hälsning
/Dana
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net