cubrid_column_types
(PECL CUBRID >= 8.3.0)
cubrid_column_types — Gets column types
Description
array cubrid_column_types
( resource $req_identifier
)
The cubrid_column_types() function gets column types of query results by using req_identifier.
Parameters
- req_identifier
-
Request identifier.
Return Values
Array of string which containing column types, when process is successful.
FALSE, when process is unsuccessful.
Examples
Example #1 cubrid_column_types() 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);
}
?>
See Also
- cubrid_column_names() - Is used to get the column names
- cubrid_prepare() - Is a sort of API which represents SQL statements
- cubrid_execute() - Is used to execute the given SQL sentence.