vendredi 8 mai 2015

file_get_contents() skipping text between <> tag

I am trying to read .tsv file using PHP. I am using the simplest method of file_get_contents() but it is skipping any text between "<>" tags. Following is the format of my .tsv file

<id_svyx35_88c_avbfa5>  <Kuldeep_Raval> rdf:type    <wikicat_Delhi_Daredevils_cricketers>

Following is the code I am using

$filename = "access_s.tsv";
$content = file_get_contents($filename);
//Split file into lines
$lines  = explode("\n", $content);
echo $content;

On reading it, the output is just

rdf:type

Please help in what can be the solution to read the line as it is?

Aucun commentaire:

Enregistrer un commentaire