+ 1
How can I reference a variable in these two functions?
5 Answers
+ 1
Use global variable to access variable in both function.
+ 2
use global before the variable name
+ 2
you will find it in the solo learn PHP course.
+ 1
How do I make a global variable?
+ 1
What is global?