php man page for chdb_create

Query: chdb_create

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CHDB_CREATE(3)								 1							    CHDB_CREATE(3)

chdb_create - Creates a chdb file

SYNOPSIS
bool chdb_create (string $pathname, array $data)
DESCRIPTION
chdb_create(3) creates a chdb file containing the specified key-value pairs. Note chdb files are not portable across little-endian and big-endian environments. Except for that, they are portable across different architectures. Also compatibility across different versions of chdb is not guaranteed.
PARAMETERS
o $pathname - The name of the file to create. If a file with the same name already exists, it is overwritten. o $data - An array containing the key-value pairs to store in the chdb file. Keys and values are converted to strings before being writ- ten to the file, as chdb only support the string type. Note that binary strings are supported as well, both as keys and values.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
ERRORS
/EXCEPTIONS Throws an exception in case the chdb file hasn't been successfully created.
EXAMPLES
Example #1 chdb_create(3) example <?php $data = array( 'key1' => '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. PHP Documentation Group CHDB_CREATE(3)
Related Man Pages
array_count_values(3) - php
array_key_exists(3) - php
chdb_create(3) - php
dba_fetch(3) - php
wincache_ucache_set(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
Forum Video Tutorial: How to Use Code Tags
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Please Welcome Nicki Paul to the Moderator Team!