Possible Duplicate:
Help me parse this file with PHP
I need to extract some text from a text file.suppose there is a text file in http://site.com/a.txt
And the contents of that file is like this:
var $name= 'name1';
var $age= 'age2';
var $phone= 'phonenumber';
var $a= 'asd';
var $district= 'district23';
How can I get the values of this text file (name1,age2,phonenumber,asd,district) in separate echo.
Organize the content of your text file like this : name1,age2,phonenumber,asd,district
And do this :