I would like a way to break the line when it gets to 360 characters in a txt file.
Example:
In my script my output
My code to write in file
$string = $data.'*'."
";
$fp = fopen( 'registro.txt', 'a+' );
if( !$fp ){
echo 'Erro inesperado, não foi possivel abrir o arquivo';
exit;
}else{
fwrite( $fp, $stringSEFIP."
");
}