update : 2015.11.03
php.shukuma.com검색:
|
mysqli_result::fetch_fieldsmysqli_fetch_fields(PHP 5) mysqli_result::fetch_fields -- mysqli_fetch_fields — Returns an array of objects representing the fields in a result set 설명객체 기반 형식
array mysqli_result::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
예제Example #1 객체 기반 형식
<?php Example #2 절차식 형식
<?php 위 예제들의 출력: ====================== 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 참고
|