converting multi-dim arrays to php assoc arrays

From: John Smith <john_smith_45678(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: converting multi-dim arrays to php assoc arrays
Date: 2003-02-02 09:36:34
Message-ID: 20030202093634.56578.qmail@web40703.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Anybody have a method for converting multi-dimensional PG columns to PHP associative arrays? ie.

{{1,123},{2,234},{3,345},{4,456}}

becomes

1 => 123, 2 => 234, 3=> 345, 4 => 456

---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Justin Clift 2003-02-02 09:55:16 Re: Website troubles
Previous Message Bruce Momjian 2003-02-02 08:59:24 Re: Clustering in PostgreSQL