&reftitle.examples;
Creating a chdb file
'value1',
'key2' => 'value2',
// ...
);
chdb_create('data.chdb', $data);
?>
]]>
The above example will generate a chdb file named
data.chdb and containing the key-value pairs defined in
$data.
Loading and looking up a chdb file
get('key1');
$value2 = $chdb->get('key2');
echo $value1, PHP_EOL;
echo $value2, PHP_EOL;
?>
]]>
&example.outputs.similar;