pg_fetch_all Fetches all rows from a result as an array &reftitle.description; arraypg_fetch_all resourceresult intresult_typePGSQL_ASSOC pg_fetch_all returns an array that contains all rows (records) in the result resource. &database.fetch-null; &reftitle.parameters; result PostgreSQL query result resource, returned by pg_query, pg_query_params or pg_execute (among others). &reftitle.returnvalues; An array with all rows in the result. Each row is an array of field values indexed by field name. &false; is returned if there are no rows in the result, or on any other error. &reftitle.examples; PostgreSQL fetch all ]]> &example.outputs.similar; Array ( [id] => 1 [name] => Fred ) [1] => Array ( [id] => 2 [name] => Bob ) ) ]]> &reftitle.changelog; &Version; &Description; 7.1.0 The result_type parameter was added. &reftitle.seealso; pg_fetch_row pg_fetch_array pg_fetch_object pg_fetch_result