On Mon, 19 Mar 2001, Barry Mitchelson wrote:
> hey,
>
> I'm writing an extension which defines a class. In the constructor, I'd like to
>create a member variable which I can then access with the other member functions in
>my extension.
>
> In php it would be like :
>
> class foo
> {
>
> var $m_bar;
>
> function foo()
> {
> $this->m_bar = 123;
> }
>
> function a()
> {
> return $this->m_bar;
> }
>
> }
>
look at adding it to the value.obj.properties of the class (its a
HashTable).
-Sterling
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]