for($i = 1; <= $algunnumero; $i++){$variable[$i]=$_POST['variable'][$i];}
foreach($_POST['variable'] as $valor){ echo $valor;}