While Loop Through Array Php Functions Definitions