Situation: Got 160 ids in array, need to build xml requests, in sets of max 50 and submit each set separately.
Problem: How to loop the function and continue with ID 51?function doBatch($ids)
Simplified Code:
function doBatch($ids)
{
$start = "<feed>";
foreach($ids as $id)
{
$add .= '<entry>'$id.'</entry>';
}
$stop = "</feed>";
$data = $start.$add.$stop;
post($data);
}