In PHP, magic constants are preset constants that alter depending on their use. They begin with a double underscore ( ) and end with another double underscore ( ). They're identical to other specified constants, but they're termed magic constants since their values alter depending on the circumstances.
The magic constant of an nth-order magic square is calculated by dividing the total of 1 to n2 by n, i.e. the magic constant = n (n2+1)/2.
The __FILE__ constant returns the entire path and name of the currently running PHP file. The name of the included file is returned if used inside an include.
name: It specifies the constant name.
point value: It indicates the value of a constant.
case-insensitive: Indicates whether or not a variable is case-insensitive. False is the default setting. It signifies that by default, it is case sensitive.
Learner's Ratings
4.4
Overall Rating
65%
21%
7%
4%
3%
Reviews
A
Arjun Chauhan
5
Great 👍 one of the best course
Z
zeeshan ahmad
5
Too Good, but I do not find the video course codding.?
M
Mrinal Padhi
5
Explains you everything perfectly and also provides study materials to you so that you can practice by your own if facing any errors. the are responds to your query also.
U
U Kyaw Soe
5
Gorgeous course
D
Dhruv Gangani
5
NICE QUIZ
G
Ganesh Mane
5
-
S
Shweta Choyal
5
Helfull website in learnvern
A
Arman Ahmed
5
Well structured and easy to understand.
I
idrees khayal
5
This teacher is best teacher ever i learn. and this course is good
Share a personalized message with your friends.