dbase_numfieldsPHP ManualPrevNextdbase_numfieldsdbase_numfields --
Find out how many fields are in a dBase database
Descriptionint 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).
Example 1. Using dbase_numfields() 1
2 $rec = dbase_get_record($db, $recno);
3 $nf = dbase_numfields($db);
4 for ($i=0; $i < $nf; $i++) {
5 print $rec[$i]."<br>\n";
6 }
7
PrevHomeNextdbase_get_record_with_namesUpdbase_numrecords
Wyszukiwarka