Re: PHP6 OOP compiler feature question / request

From: Date: Wed, 10 May 2006 19:26:45 +0000
Subject: Re: PHP6 OOP compiler feature question / request
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message

__isset() and __unset() methods are what you're looking for.
They are available since 5.1.0.

See http://www.php.net/manual/en/language.oop5.overloading.php

On 10.05.2006 21:28, Ralph Schindler wrote:
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(); ?>
-- Wbr, Antony Dovgal

Thread (11 messages)

« previous php.internals (#23232) next »