PHP array to PlPgSQL arrat. How to? - Mailing list pgsql-general

From Andre Lopes
Subject PHP array to PlPgSQL arrat. How to?
Date
Msg-id AANLkTik0FEZnmWB-=NOWpv-390xPnVFUSj+SOuLT2-OS@mail.gmail.com
Whole thread Raw
Responses Re: PHP array to PlPgSQL arrat. How to?  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: PHP array to PlPgSQL arrat. How to?  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
Hi,

I need to transform an PHP array to an PlPgSQL array. The PHP array is
like this:

[quote]
$arr = array(
                0 => array(
                            "base64" => "ddfffffff",
                            "image_type" => "jpg",
                            "width" => "343",
                            "height" => "515",
                            "html_width_height" => 'width="343" height="515"',
                            "mime" => "image/jpeg"
                            ),
                1 => array(
                            "base64" => "ddfffffffddddd",
                            "image_type" => "jpg",
                            "width" => "343",
                            "height" => "515",
                            "html_width_height" => 'width="343" height="515"',
                            "mime" => "image/jpeg"
                            )
            );
[/quote]

How can I pass this kinf of PHP array to PlPgSQL?

Give me a clue.

Best Regards,

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: updating all records of a table
Next
From: Pavel Stehule
Date:
Subject: Re: PHP array to PlPgSQL arrat. How to?