Podręcznik PHP






dbmnextkey

(PHP 3, PHP 4, PECL)

dbmnextkey --  Retrieves the next key from a DBM database

Description

string dbmnextkey ( resource dbm_identifier, string key )

Returns the next key after key. By calling dbmfirstkey() followed by successive calls to dbmnextkey() it is possible to visit every key/value pair in the dbm database. For example:

Przykład 1. Visiting every key/value pair in a DBM database

<?php

$key
= dbmfirstkey($dbm_id);
while (
$key) {
    echo
"$key = " . dbmfetch($dbm_id, $key) . "\n";
    
$key = dbmnextkey($dbm_id, $key);
}

?>



zamki polskie


print 'wakacje w maroko 1171501783' . "\n"; print 'frezowanie cnc 1171501886' . "\n"; print 'liberty direct 1171501655' . "\n"; print 'spodnie motocyklowe 1171501981' . "\n";