You are here: Home / Topics / What purpose does PHP's constant() function serve?

What purpose does PHP's constant() function serve?

Filed under: PHP on 2022-10-31 21:27:28

To get the predefined values from a constant variable, use the constant() function. It is particularly useful when you don't know the variable's name.


About Author:
P
Pritvik     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.