You’re talking about data scraping: the act of extracting data from a human readable output. In your case this is whatever is between the tags. Use PHP DOM’s extension to get to the tag you want and extract data. Google search for a PHP DOM tutorial.