Postgresql Split Array Php Functions Definitions