Please wait while we load your page...
 

Announcements

PHP Manual :: List of other reserved words



Predefined Constants || List of Resource Types || List of Reserved Words || PHP Manual

The following words cannot be used to name a class, interface or trait, and they are also prohibited from being used in namespaces.

Reserved words
int (as of PHP 7) float (as of PHP 7) bool (as of PHP 7) string (as of PHP 7)
true (as of PHP 7) false (as of PHP 7) null (as of PHP 7)

The following list of words have had soft reservations placed on them. Whilst they may still be used as class, interface, and trait names (as well as in namespaces), usage of them is highly discouraged since they may be used in future versions of PHP.

Soft reserved words
resource (as of PHP 7) object (as of PHP 7) mixed (as of PHP 7) numeric (as of PHP 7)



Predefined Constants || List of Resource Types || List of Reserved Words || PHP Manual
Live Chat Not Available