You are here: Home / Topics / What definition does PHP give to constants?

What definition does PHP give to constants?

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

Utilizing PHP's define() function makes defining constants simple. The values of the constants can be simply defined and obtained using this function.

Constants cannot be modified after definition, as the name implies. It is not necessary for them to begin with the standard $ sign as is done in PHP syntax.

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