note 10256 deleted from language.references.spot by sniper
| From: | sniper@php.net | Date: | Sun, 13 Jul 2003 03:27:00 +0000 |
| Subject: | note 10256 deleted from language.references.spot by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52011@lists.php.net to get a copy of this message | ||
Note Submitter: ole@coreconvergence.com
----
You can, in php 4.0.4, redirect $this..
<?
class foo
{
function doit(&$input) //constructor
{ $this &= $input; }
function print()
{ echo "foo"; }
}
class bar
{
function print()
{ echo "bar"; }
}
$foo=new foo;
$bar=new bar;
$foo->print();
$foo->doit();
$foo->print();
?>
Will print:
foobar