adspace
Answer Posted / Kamlesh Kaushal
To define a constant in PHP, you can use the `define()` function or declare it at the top of your script. To make it available globally, you should define it before any class declarations. For example:nn```phpndefine('MY_CONSTANT', 'some value');nclass MyClass {n //...n}n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers