function xmlrpcval($val = -1, $type = "")
{
global $xmlrpcTypes;
$this->me = array();
$this->mytype = 0;
if ($val != -1 || $type != "") {
if ($type == "") {
$type = "string";
}
if ($xmlrpcTypes[$type] == 1) {
$this->addScalar($val, $type);
} else {
if ($xmlrpcTypes[$type] == 2) {
$this->addArray($val);
} else {
if ($xmlrpcTypes[$type] == 3) {
$this->addStruct($val);
}
}
}
}
}