Re: Predefined Classes in PHP5
| From: | Jochem Maas | Date: | Fri, 09 Feb 2007 13:44:32 +0000 |
| Subject: | Re: Predefined Classes in PHP5 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248647@lists.php.net to get a copy of this message | ||
Jim Lucas wrote:
> I am wondering about the "Predefined Classes" for PHP5.
>
> I see that this page:
>
> http://us3.php.net/manual/en/reserved.classes.php
> and
> http://devzone.zend.com/manual/view/page/reserved.classes.html
> and
> http://livedocs.phpdoc.info/index.php?l=en&q=reserved
>
> Doesn't have much on the new classes that are available with php5.
>
> That page only shows two (2) new predefined classes for PHP5
>
> But, as you can see from the first post on that page, there seem to be
> much more then 2 new classes.
>
> I have done some googling for some information about all the new
> classes, but I can't seem to find anything about them.
>
> So, to my question. Does anybody have a place they can refer me to to
> find out about all the available classes in PHP5. Granted that I don't
> have all the various extensions loaded, so I don't have access to the
> various classes. I would, however, like to be able to read about them
> someplace.
>
> Any tips?
run the following code in a seperate script (possibly with some formatting):
<?php
var_dump(get_declared_classes(), get_declared_interfaces());
?>
on each item in return value of get_declared_classes() you can run the following
function: get_class_methods()
this page give you a listing of all the relevant functions:
http://php.net/manual/en/ref.classobj.php
you can then [also] use reflection to find out exactly what
each class does/has:
http://php.net/reflection
>
> Jim Lucas
>