Again i worked it out myself used
$testobj = new $classname;
for ($count=0; $count < count($vars); $count++) {
$set = "set_" . $vars[$count];
$testobj->$set('101');
}
notice the () in $testobj->$set('101'); that seemed to get it working
cheers anyway and sorry for wasting any ones time