<?php
/**
* Finds all data between <font> and </font> tags.
*
* @param string $url
* @return array $fontData
*/
function getFontData($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
// Use regular expressions to match all font data.
preg_match_all("/<font>(.*?)<\/font>/i", $data, $matches);
return $matches[1];
}
?>