Course Content
Introduction
PHP is an object-oriented scripting programming language that allows web developers to create dynamic and interactive web pages. PHP stands for Hypertext Preprocessor (PHP).
0/14
Control Statement
A control statement is a statement that determines whether other statements will be executed.
0/7
PHP for Beginners
About Lesson

Magic constants are the pre-defined constants accessible to PHP scripts. Magic constant starts and ends with a double underscore (__).

 

PHP Magic Constant:

  • __FUNCTION__ The function name
  • __METHOD__ The class method name
  • __CLASS__ The class name
  • __LINE__ The current line number of the file
  • __FILE__ The full path and filename of the file
  • PHP_VERSION The PHP version
  • PHP_INT_MAX The PHP integer value limit