I'm relatively new to PHP and I'm currently working on a project where I need to access a constant. I've defined a constant in my PHP file and now I want to access its value. Can someone please help me with this?
Here's an example of my code:
define('MY_CONSTANT', 'Hello World');
Now, how do I access the value of `MY_CONSTANT` in another part of my code? Do I need to use a specific function or syntax?
I would really appreciate any help or guidance on this topic. Thanks in advance!