Oracle Loop Through Array Php Format