MDB_Common::numCols()

MDB_Common::numCols() – カラムの数を取得する

Synopsis

require_once 'MDB.php';

integer numCols ( resource $result )

Description

結果セットの行の、カラムの数を取得します。

Parameter

resource $result

query() あるいは executeQuery() が返した有効なリソース。

Return value

integer - カラムの数を返します。

Note

This function can not be called statically.