>>54
$_POST['button'] = '';
んん?

if($_POST['button'] === $textline[1]) {
$data = $textline[1];
break;
}

でいいのでは?