Adding a value to the binairy tree:
<?php
$s = new SRM('/tmp/srm.socket');
$t = new SRMApp($s, 'binsearch');
$t->add_value($argv[1], $argv[2]);
$all = $t->get_all();
var_dump($all);
?>
Searching for a key in the binairy tree:
<?php
$s = new SRM('/tmp/srm.socket');
$t = new SRMApp($s, 'binsearch');
echo $t->get_value($argv[1])."\n";
?>