Re: Extending PHP
| From: | Richard Lynch | Date: | Fri, 05 Jan 2001 06:46:59 +0000 |
| Subject: | Re: Extending PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32837@lists.php.net to get a copy of this message | ||
> >> limitations. Otherwise, I would most like to implement a PHP class in
c,
> > but
> >> I can't find documentation on this. Is it as simple as naming your
> > functions
> >> <classname>::<method name> and referencing a local variable
> >> 'this' are
is
> >> there more to it?
> >
> > Huh? PHP classes are implemented in C. If you want to write a whole
new
> > class system... Wow.
>
> Maybe I didn't come through clearly. I'd like a class that can be
> instantiated like this:
>
> $obj = new MyClass;
>
> But where MyClass is implemented in c rather than in PHP code.
There are some internal object thingies that have been around way longer
than PHP OO. mysql_fetch_object() returns such a beast.
I never really understood the glamour of it, nor its relationship, if any,
to a PHP OO class instantiation...
Still, whatever it is that mysql_fetch_object returns, you can probably do
something like that only different. :-)