How to define a Constant in PHP?
Constant can be declared using define()
function in PHP. To retrieve the value of a constant, we can specify its name.
Note:
Note: Unlike with variables, we do not need to use doller ($) to output constant value.
Learn more about the similar topics:
Tutorials |
---|
No Content Found. |
Exercises & Assignments |
---|
No Content Found. |
Interview Questions & Answers |
---|
No Content Found. |