update : 2015.11.03
php.shukuma.com검색:
|
pg_fetch_all(PHP 4 >= 4.3.0, PHP 5) pg_fetch_all — Fetches all rows from a result as an array 설명
array pg_fetch_all
( resource
$result
)pg_fetch_all() returns an array that contains all rows (records) in the result resource.
인수
반환값An array with all rows in the result. Each row is an array of field values indexed by field name.
예제
Example #1 PostgreSQL fetch all
<?php 위 예제의 출력 예시: Array ( [0] => Array ( [id] => 1 [name] => Fred ) [1] => Array ( [id] => 2 [name] => Bob ) ) 참고
|