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

PHP Home Page

Manual Table of Contents
Up to DBM
Quick Reference
DBM
* dbmopen
* dbmclose
* dbmexists
* dbmfetch
* dbminsert
* dbmreplace
* dbmdelete
* dbmfirstkey
* dbmnextkey
* dblist
Manual: dbmfetch
View the source code for this pageSearch the site



Previous page
 dbmexists
dbminsert 
Next page


dbmfetch

dbmfetch -- fetches a value for a key from a dbm database

Description

string dbmfetch (int dbm_identifier, string key)

Returns the value associated with key.


User Contributed Notes: dbmfetch


hiongun@kt.co.kr
08-Oct-1999 07:51
I have a ndbm file, which contains a dictionary of "korean keyword" into "japanese words". Korean keywords (key) are OK to extract with PHP, but corresponding Japanese words (in EUC-JP) are not extractable by PHP. What's wrong? The source-code for PHP seeming directly maps the PHP dbm_fetch() into UNIX ndbm_fetch(). Is that correct? UNIX dbm deals with 'datum' type, while PHP dbm deals with 'string' type.


AdiF@Home.com
28-Nov-1999 11:26
I get a: Warning: not a valid database identifier 0 in D:\HTTPD\HTDOCS\main.php3 on line 122 on the line with the dbmfetch command. $d = "D:\httpd\HtDocs\database\newsdb"; $db = dbmopen($d, "r"); $totalarts = dbmfetch($db, "highstory");


 About Notes


Previous page
 dbmexists
dbminsert 
Next page



Site Statistics


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.