note 28336 modified in ref.dbase by nicos
| From: | nicos@php.net | Date: | Thu, 09 Jan 2003 18:58:39 +0000 |
| Subject: | note 28336 modified in ref.dbase by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-41923@lists.php.net to get a copy of this message | ||
To answer to guillaume 07-Nov-2002 07:13:
Note that you have to remove the 'deleted' key which is not a field name.
--was--
guillaume wrote:
07-Nov-2002 07:13
>To retrieve the name of the fields.
>
>$dbi = dbase_open($db_path, 0); // opens the dbf file
>$res = dbase_get_record_with_names($dbi, 1); // throw record 1 into associative array
>key=>value
>$cles = array_keys($res);// retrieves all the keys from previous array, which are field names.
Note that you have to remove the 'deleted' key wich is not a field name.
http://www.php.net/manual/en/ref.dbase.php