Php Declare Function Inside Function Js La