Avatar of mhoggatt1
mhoggatt1

asked on 

PHP right brace problem

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
PHP

Avatar of undefined
Last Comment
Rob

8/22/2022 - Mon