PHP magic constants?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sangeetanegi
    Senior Member
    • Dec 2015
    • 140

    PHP magic constants?

    What are PHP magic constants?
  • sapnathakur
    Member
    • Jan 2016
    • 33

    #2
    PHP magic constants are:

    FILE__ – The full path and filename of the file.
    DIR__ – The directory of the file.
    FUNCTION__ – The function name.
    CL***__ – The cl*** name.
    METHOD__ – The cl*** method name.

    Comment

    • priya.sharma
      Senior Member
      • Aug 2016
      • 105

      #3
      __FILE__ The full path and filename of the file.
      __DIR__ The directory of the file.
      __FUNCTION__ The function name.
      __CL***__ The cl*** name.
      __METHOD__ The cl*** method name.
      __LINE__ The current line number of the file.
      __NAMESPACE__ The name of the current namespace

      Comment

      • Guest

        #4
        __FILE__ The full path and filename of the file.
        __DIR__ The directory of the file.
        __FUNCTION__ The function name.
        __CL***__ The cl*** name.
        __METHOD__ The cl*** method name.
        __LINE__ The current line number of the file.

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎