downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Funcții chdb> <chdb::__construct
[edit] Last updated: Fri, 24 May 2013

view this page in

chdb::get

(PECL chdb >= 0.1.0)

chdb::getGets the value associated with a key

Descrierea

public string chdb::get ( string $key )

Gets the value associated with a key from a chdb database.

Parametri

key

The key for which to get the value.

Valorile întoarse

Returns a string containing the value associated with the given key, or NULL if not found.

Exemple

Example #1 chdb::get() example

<?php

$data 
= array(
    
'key1' => 'value1',
    
'key2' => 'value2',
    
// ...
);
chdb_create('data.chdb'$data);

$chdb = new chdb('data.chdb');
$value1 $chdb->get('key1');
$value2 $chdb->get('key2');

echo 
$value1PHP_EOL;
echo 
$value2PHP_EOL;

?>

Exemplul de mai sus va afișa ceva similar cu:

value1
value2


add a note add a note User Contributed Notes chdb::get - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites