|
PHP5中文手册
mysqli_num_fieldsresult->field_count(No version information available, might be only in CVS) result->field_count — Get the number of fields in a result 说明Procedural style:
int mysqli_num_fields
( mysqli_result $result
)
Object oriented style (property): mysqli_result
int$field_count;
Returns the number of fields from specified result set. 参数
返回值The number of fields from a result set. 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|