Re: How to parse data type array columns?

From: Janning Vygen <vygen(at)gmx(dot)de>
To: pgsql-php(at)postgresql(dot)org
Cc: Greg Stark <gsstark(at)mit(dot)edu>
Subject: Re: How to parse data type array columns?
Date: 2005-08-16 18:25:16
Message-ID: 200508162025.17280.vygen@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Am Dienstag, 16. August 2005 17:04 schrieb Greg Stark:
> Janning Vygen <vygen(at)gmx(dot)de> writes:
> > Hi,
> >
> > if you use array data type in your database design and query your tables
> > with PHP you get a string which represents the array. It can look
> > something like this:
> >
> > [1:2]{{"Hallo", "Te\"st},"},{"Hallo", "Test"}}
>
> Do you still get that if you use the binary format? I would expect it to be
> easier to parse the binary format than this format which is really intended
> for humans and dump files.

What kind of "binary format" do you mean? anyway: In PHP you get it as a
string and i wonder if anyone has written a small pasrer function for php to
handle this string an convert it into an php array structure.

kind regards,
janning

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Greg Stark 2005-08-16 20:08:01 Re: How to parse data type array columns?
Previous Message Greg Stark 2005-08-16 15:04:20 Re: How to parse data type array columns?