I have a function that I am trying to run but it shows the message as CONSTANT already defined.
I tried to put a condition saying \"if defined\" about the function
Replace this:
define('constant', 'value');
with this:
if (!defined('constant')) define('constant', 'value');