berkeley db : fetch array & display example
<?php
# DB4 FETCH
$DB4_DATABASE = "/data/TEST_DATA.DB";
$db = dba_open($DB4_DATABASE,"r","db4");
$k = dba_firstkey($db);
while($k != NULL)
{
$AAA = explode("\xFE",dba_fetch($k, $db));
echo "[key] $k => [value] $AAA[0] / $AAA[1] / $AAA[2] / $AAA[3] / $AAA[4] / $AAA[5]<br>\r\n";
$k = dba_nextkey($db);
}
dba_close($db);
?>