PHP6 OOP compiler feature question / request
| From: | Ralph Schindler | Date: | Wed, 10 May 2006 17:28:40 +0000 |
| Subject: | PHP6 OOP compiler feature question / request | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-23231@lists.php.net to get a copy of this message | ||
Architectural restrictions aside, is it far off to ask if something like this could be possible in PHP6:
<?
class TestReservedKeywordMethods
{
public $value = "2";
public function isset()
{
if (is_null($this->value))
return false;
else
return true;
}
public function unset()
{
$this->value = 0;
}
}
$test = new TestReservedKeywordMethods();
$test->isset();
$test->unset();
?>