|
PHP5中文手册
mysqli_fetch_fieldsresult->fetch_fields()(No version information available, might be only in CVS) result->fetch_fields() — Returns an array of objects representing the fields in a result set 说明Procedural Style:
array mysqli_fetch_fields
( mysqli_result $result
)
Object oriented style (method): mysqli_result
array fetch_fields
( void
)
This function serves an identical purpose to the mysqli_fetch_field() function with the single difference that, instead of returning one object at a time for each field, the columns are returned as an array of objects. 参数
返回值Returns an array of objects which contains field definition information or FALSE if no field information is available.
范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|