I have a text file (id.txt) that looks like this:
Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
[5] => 6
[6] => 7
[7] => 8
[8] => 9
[9] => 10
[10] => 11
[11] => 12
[12] => 13
[13] => 15
[14] => 16
[15] => 101
)
How can I load this text file as an array in PHP? I think I'd have to use file_get_contents()
but I don't know how to use it and allow PHP to read it as an array.