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 50DE3D1B1AE for ; Thu, 5 Aug 2004 23:20:15 -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 81634-08 for ; Fri, 6 Aug 2004 02:20:10 +0000 (GMT) Received: from lakermmtao09.cox.net (lakermmtao09.cox.net [68.230.240.30]) by svr1.postgresql.org (Postfix) with ESMTP id 772DCD1B298 for ; Thu, 5 Aug 2004 23:20:02 -0300 (ADT) Received: from [192.168.3.2] (really [68.12.185.196]) by lakermmtao09.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040806021956.EPEE20883.lakermmtao09.cox.net@[192.168.3.2]> for ; Thu, 5 Aug 2004 22:19:56 -0400 Subject: Status of "associative functions" in php-pgsql? From: Steve Bergman To: pgsql-php Content-Type: text/plain Date: Thu, 05 Aug 2004 21:19:51 -0500 Message-Id: <1091758791.16009.69.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 1.5.91 (1.5.91-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/6 X-Sequence-Number: 2894 I have not been able to find any documentation on the "associative functions" of php-pgsql (e.g. pg_insert) which supposedly build queries based upon an associative array passed to them. It's not a big deal, I guess, but this would save a few lines of code in various places. I have heard that they were implemented in php 4.2 or so, but were considered experimental, and yet there is no sign of them in the documentation for php5. Like I say, it's not a huge problem, but the "insert" syntax (insert into table set field='value') of MySQL is nicer, and makes for more readable code, when building a query in a loop. Thanks for any pointers, Steve