Thread: Open source PostgreSQL type parsers in PHP?

Open source PostgreSQL type parsers in PHP?

From
"Dmitry Koterov"
Date:
Hello.

Is there any open source and well-tested PHP libraries to parse and build the following PostgreSQL data types?

- arrays (including N-dimensional): {a,b,c}
- hstore: "a=>b, c=>d"
- ROW: ("a","b","(""c"",""d"")")

E.g. I have some PHP variable and want to build corresponding PostgreSQL value.
Or, I have fetched a PostgreSQL value as a string and want to parse it into PHP variable.