How do i make an array in php a global array? The code:
$employee_array[0] = "Bob";
display();
function display(){
echo $employee_array[0];
}
....Does not print Bob.
I have tried:
function display(){
global $employee_array[0];
echo $employee_array[0];
}
....still doesnt work. Please help
Thanks Wes