|
mysqli_result::fetch_fieldsmysqli_fetch_fieldsReturns an array of objects representing the fields in a result set DescriptionObject oriented style
array mysqli_result::fetch_fields
( void
)
Procedural style
array mysqli_fetch_fields
( mysqli_result
$result
)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. Parameters
Return Values
Returns an array of objects which contains field definition information or
ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above examples will output: Name: Name Table: Country max. Len: 11 Flags: 1 Type: 254 Name: SurfaceArea Table: Country max. Len: 10 Flags: 32769 Type: 4 See Also
|