I am a novice just playing around on my own site , so i dont know much .
I am crerating a numbered list of words and writing it to a text file , but i need a line break after every 25 words. I am stumped as how to do it . here is the code that works great I just dont know how to add the line breaks I need.
$dad= (explode(" ",$data4));
foreach($dad as $key => $value){
$number = $key+1;
$newstr .= "$number ". $value . PHP_EOL;
}
fwrite($file,"$newstr");