|
mysqli_result::fetch_fieldsmysqli_fetch_fieldsReturns an array of objects representing the fields in a result set BeschreibungObjektorientierter Stil
array mysqli_result::fetch_fields
( void
)
Prozeduraler Stil
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. Parameter-Liste
Rückgabewerte
Returns an array of objects which contains field definition information or
BeispieleBeispiel #1 Objektorientierter Stil
<?phpBeispiel #2 Prozeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe: ====================== Character Set: latin1 ====================== Name: actor_id Table: actor Max. Len: 3 Length: 5 charsetnr: 63 Flags: 49699 Type: 2 Name: last_name Table: actor Max. Len: 12 Length: 45 charsetnr: 8 Flags: 20489 Type: 253 ====================== Character Set: utf8 ====================== Name: actor_id Table: actor Max. Len: 3 Length: 5 charsetnr: 63 Flags: 49699 Type: 2 Name: last_name Table: actor Max. Len: 12 Length: 135 charsetnr: 33 Flags: 20489 Siehe auch
|