I want to make a script that will read every line then put them into a array, I am not to sure how to do this.. I think it might be fgets() but I am unsure of how to use it correctly.. here is a example of what I am trying to do
basic text file:
line one
line two
line three
line four
the php array end out will contait each line like
echo $array[2]; // outputs: line three
echo $array[3]; // outputs: line four
etc
Thanks for your time
- Me