phpは大きなテキストを複数のtxtファイルに分割する
300 ワード
]+/s',$content); //
$new = array_chunk($arr,40); //
$i = 1;
foreach ($new as $item) {
file_put_contents($i.'.txt',implode("
",$item));
$i++;
}
echo "ok";
]+/s',$content); //
$new = array_chunk($arr,40); //
$i = 1;
foreach ($new as $item) {
file_put_contents($i.'.txt',implode("
",$item));
$i++;
}
echo "ok";