ExamVeda
Login
Home
This question belongs to PHP Object Oriented Concept
Object Oriented Concept
?

What will happen if you try to set a value to a constant once it has been declared?

Answer & Solution
Correct Answer: Option C
You should use constants when your property needs to be available across all instances of a class, and when the property value needs to be fixed and unchanging.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.