(PHP 3, PHP 4 )

dbase_numfields --  Find out how many fields are in a dBase database


int dbase_numfields ( int dbase_identifier)

Returns the number of fields (columns) in the specified database. Field numbers are between 0 and dbase_numfields($db)-1, while record numbers are between 1 and dbase_numrecords($db).

例子 1. Using dbase_numfields()


= dbase_get_record($db, $recno);
$nf  = dbase_numfields($db);
for (
$i=0; $i < $nf; $i++) {
$rec[$i]."<br />\n";


虎的笑话 虎的成语 虎的歇后语