Php Function Use Outer Variable Valve