Postgres Array Length Function In Php