Postgres Loop Through Array Php Adalah