I've got a file like bellow (the date might be about 5000)

RESOURCE: CPS DSL 1- 8080 ( 1) STATE: DSL
PARAMETERS:
M'35611523535 , , M' ,

and I should get some date from it like here:

DSL -----------number
1- 8080 523535 (I should get it from M'35611523535)

and then echo it to table or exel file.

<?php
$filename = 'test.txt';
$fp = fopen($filename, 'w');

Here I think i should create some thing like this

for i= 0 to count (ammount of string)

echo to table

fclose($fp);
?>

Thanks in advance