PHP Manualcubrid_num_cols(PECL CUBRID >= 8.3.0) cubrid_num_cols — Return the number of columns in the result set Description
int cubrid_num_cols
( resource
$result
)The cubrid_num_cols() function is used to get the number of columns from the query result. It can only be used when the query executed is a select statement. Parameters
Return ValuesNumber of columns, when process is successful.
ExamplesExample #1 cubrid_num_cols() example
<?php The above example will output: Row Num: 6 Column Num: 2 See Also
![]() |
PHP-Index
New Tutorial entries
|