Magic constantsPHP provides a large number of predefined constants to any script which it runs. Many of these constants, however, are created by various extensions, and will only be present when those extensions are available, either via dynamic loading or because they have been compiled in.
There are nine magical constants that change depending on
where they are used. For example, the value of
See also get_class, get_object_vars, file_exists and function_exists. Changelog
|