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";
? >