|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-22 13:42 UTC] johannes@php.net
-Package: Feature/Change Request
+Package: PostgreSQL related
[2012-03-31 05:39 UTC] yohgaki@php.net
-Assigned To:
+Assigned To: yohgaki
[2017-10-24 07:58 UTC] kalle@php.net
-Status: Assigned
+Status: Open
-Assigned To: yohgaki
+Assigned To:
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 22:00:01 2025 UTC |
Description: ------------ Let functions like pg_fetch_all use one column of the result set (most likely the primary key or another unique key) as key of the PHP-array. Reproduce code: --------------- // this is what I currently use $ergebnis= pg_fetch_all($resultset); foreach ($ergebnis as $row){ $text[$row['id']] = $row['text']; } // this is what I would like to have $textA= pg_fetch_all($resultset, 'id'); // just for convenience, readability and performance