예약어 사전 정의된 클래스
이 섹션에는 미리 정의된 표준 클래스가 나열되어 있습니다. 기타 확장은 참조에 설명된 다른 클래스를 정의합니다.
표준 정의 클래스
이러한 클래스는 PHP 빌드에 포함된 표준 함수 집합에 정의되어 있습니다.
- Directory
- dir()에 의해 생성됩니다.
- stdClass
- 객체로 타입캐스팅하여 생성됩니다.
- __PHP_Incomplete_Class
- unserialize()에 의해 생성되었을 수 있습니다.
- Exception
- ErrorException
- php_user_filter
- Closure
- 사전 정의된 최종 클래스 Closure는 익명 함수를 나타내는 데 사용됩니다.
- Generator
- 미리 정의된 최종 클래스 Generator는 생성기를 나타내는 데 사용됩니다.
- ArithmeticError
- AssertionError
- DivisionByZeroError
- Error
- Throwable
- ParseError
- TypeError
Special classes
다음 식별자는 특별한 용도가 있으므로 클래스 이름으로 사용할 수 없습니다.
- self
- Current class.
- static
- Current class in runtime.
- parent
- Parent class.