note 33708 deleted from language.oop by irchtml
| From: | irchtml@php.net | Date: | Sat, 28 Feb 2004 23:13:35 +0000 |
| Subject: | note 33708 deleted from language.oop by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65966@lists.php.net to get a copy of this message | ||
Note Submitter: redshift@pandora.be
----
Hi,
You can use functions you defined in your class in another function of your class.
Like this:
class foo
{
var $string;
function bar($string)
{
return $string;
}
function foodbar()
{
$return = foo::("hello world");
return $return;
}
}
To execute it:
<?php
$myfoo = new foo;
echo $myfoo->foodbar();
?>
would produce:
hello world