Predefined Classes
This section lists standard predefined classes. Miscellaneous extensions define other classes which are described in their reference.
Standard Defined Classes
These classes are defined in the standard set of functions included in the PHP build.
- Directory
- Created by dir().
- stdClass
- Created by typecasting to object.
- __PHP_Incomplete_Class
- Possibly created by unserialize().
Predefined classes as of PHP 5
These additional predefined classes were introduced in PHP 5.0.0.
- Exception
- ErrorException
- Available since PHP 5.1.0.
- php_user_filter
Closure
The predefined final class Closure was introduced in PHP 5.3.0. It is used for representing anonymous functions.
For more information, see its class page.
Generator
The predefined final class Generator was introduced in PHP 5.5.0. It is used for representing generators.
For more information, see its class page.
Predefined interfaces and classes as of PHP 7
These additional predefined interfaces and classes were introduced in PHP 7.0.0.
Special classes
Following identifiers may not be used as a class name as they have special purpose.
- self
- Current class.
- static
- Current class in runtime.
- parent
- Parent class.
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-reserved.classes.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.