Postgresql Function Variable Declaration In Php