★ wanayoo — archive 1999 http://www.php.net/manual/function.dbase-numfields.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to dBase
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
dBase
* dbase_create
* dbase_open
* dbase_close
* dbase_pack
* dbase_add_record
* dbase_replace_record
* dbase_delete_record
* dbase_get_record
* dbase_get_record_with_names
* dbase_numfields
* dbase_numrecords
Manual: dbase_numfields
View the source code for this pageSearch the site



Previous page
 dbase_get_record_with_names
 Updated
Sat, 12 Aug 2000
dbase_numrecords 
Next page


dbase_numfields

(PHP3 , PHP4 )

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

Description

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).

Example 1. Using dbase_numfields()


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


 About Notes


Previous page
 dbase_get_record_with_names
 Updated
Sat, 12 Aug 2000
dbase_numrecords 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.