Forum Moderators: coopster
Actor @ M-Dream (Chinese Name)
Is it possible to extract the information that is between the () brackets? In this case: Chinese Name
This is the code I have so far:
$url = "http://www.mysite.com/actor.php";$filehandle = @fopen($url, 'r');
$filesize = 25000;
$stuff = fread($filehandle, $filesize);
fclose($filehandle);if (eregi("<title>(.*)</title>", $stuff, $out))
{
$title=$out;
}
foreach($title as $display)
{
echo $display;
}
This is succesfully displaying the whole title. I`m a little unsure of the code to extract the info between the brackets. I`m assuming this is possible?
Thanks.