I have this test.php where i have this info :
callername1 : \'Fernando Verdasco1\' callername2 : \'Fernando Verdasco2\' callername3 : \'Fernando Verdasco3\' call
There is a rather simple approach to tihs:
$fData = file_get_contents("test.php"); $lines = explode("\n", $fData); foreach($lines as $line) { $t = explode(":", $line); echo trim($t[1]); // This will give you the name }