X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1A3FE5280E for ; Tue, 16 Aug 2005 15:24:07 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63593-03 for ; Tue, 16 Aug 2005 18:24:02 +0000 (GMT) Received: from pw6tiger.de (pw6tiger.de [217.160.140.116]) by svr1.postgresql.org (Postfix) with SMTP id 8E8495286F for ; Tue, 16 Aug 2005 15:24:00 -0300 (ADT) Received: (qmail 22780 invoked by uid 505); 16 Aug 2005 18:24:00 -0000 Received: from vygen@gmx.de by planwerk6 by uid 89 with qmail-scanner-1.14 (virus scan: Clear:. Processed in 0.190858 secs); 16 Aug 2005 18:24:00 -0000 Received: from isi-dial-156-126.isionline-dialin.de (HELO jv.pw6.de) (vygen@planwerk6.de@195.158.156.126) by pw6tiger.de with SMTP; 16 Aug 2005 18:24:00 -0000 From: Janning Vygen To: pgsql-php@postgresql.org Subject: Re: How to parse data type array columns? Date: Tue, 16 Aug 2005 20:25:16 +0200 User-Agent: KMail/1.7.2 Cc: Greg Stark References: <200508161004.07400.vygen@gmx.de> <871x4tx6rv.fsf@stark.xeocode.com> In-Reply-To: <871x4tx6rv.fsf@stark.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508162025.17280.vygen@gmx.de> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.048 required=5 tests=[AWL=-0.002, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/6 X-Sequence-Number: 3218 Am Dienstag, 16. August 2005 17:04 schrieb Greg Stark: > Janning Vygen 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