Hey! I've been trying so many different ways, many of them ending up infinite iterations and my computer freezing but what I'm trying to do is open a file and get each line from it in a loop. While it's looping, each line will be assigned to a...
Hey!
I've been trying so many different ways, many of them ending up infinite iterations and my computer freezing but what I'm trying to do is open a file and get each line from it in a loop. While it's looping, each line will be assigned to a variable, or preferably an array. Like this example.
include.txt
{Name: Here, E-Mail: Here, Location: Here}
then I want it to iterate that line and implode it with the commas being seperaters into an array like this
Array (0 => Name: Here, 1=> E-Mail: here, 2=> Location: Here)
Any help would be appreciated. Thanks.