
How do you define a constant?

Hi,
With the help of define() directive, you can create constant in php. And here is how:
<?php
define('NAME', 'Bharat');
?>
Thanks.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.