PHP » GoLang |
login |
register |
about
|
pg_fetch_all(PHP 4 >= 4.3.0, PHP 5, PHP 7) pg_fetch_all — Fetches all rows from a result as an array Description
array pg_fetch_all
( resource
$result
[, int $result_type = PGSQL_ASSOC
] )pg_fetch_all() returns an array that contains all rows (records) in the result resource.
Parameters
Return ValuesAn array with all rows in the result. Each row is an array of field values indexed by field name.
Examples
Example #1 PostgreSQL fetch all
<?php The above example will output something similar to: Array ( [0] => Array ( [id] => 1 [name] => Fred ) [1] => Array ( [id] => 2 [name] => Bob ) ) Changelog
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|