function setPostCategories($postID, $categories) { $XMLpostid = new xmlrpcval($postID, "string"); $XMLcategories = new xmlrpcval($categories, "array"); $r = new xmlrpcmsg("mt.setPostCategories", array($XMLpostid, $this->XMLusername, $this->XMLpassword, $XMLcategories)); $r = $this->exec($r); return $r; }