Cubrid 関数
PHP Manual

cubrid_column_names

(PECL CUBRID >= 8.3.0)

cubrid_column_namesIs used to get the column names

説明

array cubrid_column_names ( resource $req_identifier )

The cubrid_column_names() function is used to get the column names of the query result by using req_identifier.

パラメータ

req_identifier

Request identifier.

返り値

Array of string which containing column names, when process is successful.

FALSE, when process is unsuccessful.

例1 cubrid_column_names() example

<?php
$req 
cubrid_execute ($con"select * from person");
if (
$req) {
   
$coltypes cubrid_column_types ($req);
   
$colnames cubrid_column_names ($req);
   while (list (
$key$coltype) = each ($coltypes))
      echo 
$coltype;
   while (list (
$key$colname) = each ($colnames))
      echo 
$colname;
   
cubrid_close_request ($req);
}
?>

参考


Cubrid 関数
PHP Manual