ok i solved this thank you so much. finally it worked for me like this to print all the values in subfields:
if($check['type'] == 'repeater'):
if( have_rows($name) ):
while ( have_rows($name) ) : $the_row = the_row();
foreach ($the_row as $key => $value) {
$content .= "$value </br>" ;
}
endwhile;
endif;
elseif($check['type'] == 'wysiwyg'):
$content .= $value;
else:
endif;