从4.3.0 开始,result_type默认值为 PGSQL_ASSOC,而旧版本的默认值是 PGSQL_BOTH。数字属性在这里没有用处,因为在 PHP 中对象的属性不能是数字。 result_type参数在以后的版本中可能会删除。 示例#1pg_fetch_object() <?php $database="store"; $db_conn=pg_connect("host=localhost port=5432 dbname=$da...
Fetch a row as an object (PHP 4, PHP 5) object pg_fetch_object ( resource result [, int row [, int result_type]] ) object pg_fetch_object ( resource result [, int row [, string class_name [, array params]]] )pg_fetch_object() returns an object with properties that correspond...