Re: Extension help
| From: | Sterling Hughes | Date: | Tue, 20 Mar 2001 00:01:44 +0000 |
| Subject: | Re: Extension help | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-49440@lists.php.net to get a copy of this message | ||
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