You are here: Home / Topics / What kinds of constants are predefined in PHP?

What kinds of constants are predefined in PHP?

Filed under: PHP on 2022-10-31 21:27:13

The following are some of the most popular constants in PHP:

  • _METHOD_: Displays the class name
  • CLASS_: Provides the class name.
  • FUNCTION_: Indicates the function name.
  • LINE_: Indicates the working line number.
  • FILE_: Displays the file name and its path.

About Author:
P
Pritvik     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.