Extension help
| From: | Barry Mitchelson | Date: | Mon, 19 Mar 2001 22:16:58 +0000 |
| Subject: | Extension help | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49412@lists.php.net to get a copy of this message | ||
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;
}
}
but I can't figure out how to do it within the extension.
thanks,
barry
--
http://www.theshining.org