Php Declare Variable Outside Function Error