Discussion Forum | Board Infinity

What are magic constants in PHP?

What are magic constants in PHP?

2 Likes

Magic constants are also termed as pre-defined constants in PHP. It gets changed on the basis of their use. They basically start with double underscore (__) and ends with double underscore (__).