What are magic constants in PHP?

Magic constants in PHP are the predefined constants, which get changed on the basis of their use. It starts with a double underscore (__) and ends with a double underscore. Magic constants are similar to other predefined constants but as they change their values with the context, they are called magic constants.

22-August 9:12 PM 353 Views

 Prev question

Next question