I have a separate file where I include variables with thier set value. How can I make these variables global?
Ex. I have the value $myval in the v
$myval
v
Is there a reason why you can't pass the variable into your function?
myFunction($myVariable) { //DO SOMETHING }
It's a far better idea to pass variables rather than use globals.