Php Use Global Variable Inside Function