Added PHP function scope