Postgresql Get Data From Array Php Example Source