Populate array from file PHP [closed]

I have create a simple script that ping an host in my lan and return the status of the device into a html table.

enter image description here

enter image description here

I wrote the “host ping” directly into the array in the code,

enter image description here

i want to take that information from a txt file and put in the iplist array

The info in txt file would like:

“192.168.0.15,PC1”

“10.65.0.101,Switch1”

Thanks for responding