Here is what im using for test purposes to simplify what im asking for. What im trying to achieve is:
- Firstnameinarray, 2. Secondnameinarray, 3. Thirdnameinarray
Right now I am getting this:
Firstnameinarray, Secondnameinarray, Thirdnameinarray
this is the code:
$list = file("pready.txt", FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES);
$num = 0;
$listn = implode(", ", $list );
$get = explode(",", $listn);
echo "$listn";
echo "<br>";
echo "$get[0]"; //this is for my testing of another part of the script
Thank you in advance!