I believe I have my} after the foreach statement in the wrong place.
<?php
// open source file
$myfile = file_get_contents("strongs.txt") or die("Unable to open
file!");
// Open target file for writing
$myfile1 = fopen("strongs2.txt", "w")
// separate the items in the file
$arr = explode(" ", $myfile);
// right items into target file
foreach ($arr as $a) {
fwrite($myfile, $a . "\n");
}
fclose($myfile1);
?>
thanks,
Michael