I have a script that I use in an include() so that each page has access that those variables. Everything was working fine until I tried to place those variables in a function. I get no error but I cannot access those variables from the include() I.E.
This example works
//script that defines $num
include('numbers.php');
print "$num";
This example does not work
//script that defines $num
include('numbers.php');
function print_numbers() {
print "$num";
}