Oracle Loop Through Array Php Functions