$newArr=[];
$tmp=[];
foreach ($arr as $row){
if(!strstr($row,'059')){
array_push($tmp,$row);
/*echo "<pre>";
var_dump($tmp);exit;*/
}else{
//array_push($tmp,$row);
//echo "<pre>";
//var_dump($tmp);
array_push($newArr,$tmp);
$tmp=[];
}
}