note 15565 deleted from function.pg-fetch-array by irchtml

From: Date: Sun, 09 Jan 2005 15:41:08 +0000
Subject: note 15565 deleted from function.pg-fetch-array by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82991@lists.php.net to get a copy of this message
Note Submitter: rvtol at isolution dot nl ---- To have both the associative and the numeric interface (to the array of fetched data) connected to a single data-set, try this: $row = pg_fetch_array($rslt,$rownr, PGSQL_ASSOC); foreach($row as $k => $v) $row[] = &$row[$k]; // (mind the ampersand)

« previous php.notes (#82991) next »