Separate names with a comma.
<?php $filee = file ("end.txt"); $p = 5; for ($i=0; $i<$p; $i++){ $fp = fopen("file.txt", "r+"); echo $fp; fwrite($fp, $filee[$i]);...