global variables not working
-
I am including a script into my wordpress, which is not working. I’ve narrowed it down to the script’s global variables not working. Here is an example that I put into my sidebar and it does not work. I would like to figure out why its not pulling the variable so I can edit the script to work with it.
$myvar = "testing"; function test_func() { global $myvar; echo $myvar; } test_func();
Thanks for your help!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘global variables not working’ is closed to new replies.