PHP 7.1.0 Release Candidate 3 Released

List of Reserved Words

Table of Contents

The following is a listing of predefined identifiers in PHP. None of the identifiers listed here should be used as identifiers in any of your scripts unless explicitly noted otherwise. These lists include keywords and predefined variable, constant, and class names. These lists are neither exhaustive or complete.

add a note add a note

User Contributed Notes 1 note

up
-54
SR
8 years ago
[Editorial note: parent and self are reserved class names. Functions and constants with their names can be declared, but not userspace classes]

true, false and null are not listed because they are globally-defined constants, not reserved words.

No idea about parent or self, though.
To Top