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

search for in the

chdb> <Constantes pré-définies
[edit] Last updated: Fri, 25 May 2012

view this page in

Exemples

Exemple #1 Création d'un fichier

<?php

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

?>

L'exemple ci-dessus génère un fichier chdb nommé data.chdb et contenant les paires clé-valeur définies dans $data.

Exemple #2 Chargement et affichage d'un fichier file

<?php

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

echo 
$value1PHP_EOL;
echo 
$value2PHP_EOL;

?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

value1
value2


add a note add a note User Contributed Notes Exemples
There are no user contributed notes for this page.

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