I am looking at obfuscating my JS code, however some parts of my JS code is generated from PHP logic.
One example would be the following:
<?php if ($somethingFromPHP == true){ ?>
A_JS_Variable_Already_Obfuscated = true;
A_JS_Function_Already_obfuscated('<?php echo json_encode($anotherThingFromPHP); ?>');
<?php } ?>
As you can see, there is a conflict with that code.
My PHP code is unaware of the obfuscated variable and function.
How would I solve this conflict?