How can I read integers from a text file and store them in an array.
I have the following text file.
A B C -3 -2 -1 0 1 2 3 11 -3
The above code consists of 9 integers which are -3,-2,-1,0,1,2,3,11,-3.
Its a .txt file.
I wanna read that file using php code which stores all those integers (only integers mentioned above) in an array.
I have been trying to figure out since 3 days and now I am out of suggestions so I need help, would be really grateful to this community, thanks.
More explanation:
It should be as follows,
$somearray[0]=-3
$somearray[1]=-2
and so on…
.
.