XML

  <function name="rpcf_get_banks" id="0x6002">
    <input/>
    <output>
      <integer name="banks_size" />
      <for name="i" from="0" count="banks_size">
        <integer name="id" array_index="i" />
        <string name="bic" array_index="i" />
        <string name="name" array_index="i" />
        <string name="city" array_index="i" />
        <string name="kschet" array_index="i" />
      </for>
    </output>
  </function>

PHP

        function rpcf_get_banks() { //0x6002
                $ret=array();
                if (!$this->connection->urfa_call(0x6002)) {
                        print "Error calling function ". __FUNCTION__ ."\n";
                        return FALSE;
                }
                $x = $this->connection->urfa_get_data();// Tariff count
                $count = $x->DataGetInt();
                $ret['banks_size'] = $count;
                for ($i=0;$i<$count;$i++) {
//                      $x = $this->connection->urfa_get_data();
                        $bank['id']=$x->DataGetInt();
                        $bank['bic']=$x->DataGetString();
                        $bank['name']=$x->DataGetString();
                        $bank['city']=$x->DataGetString();
                        $bank['kschet']=$x->DataGetString();
                        $ret['banks'][]=$bank;
                }
//              $this->connection->urfa_get_data();
                return $ret;
        }