New course! Every coder should learn Generative AI!
Try a free lesson0
as it is given that we can declare variable any where . so why we can not use global variable in local function
2 Answers
+ 1
You can declare the global variable out of the function , then you can use it any where
0
global $varname