i want to get all text
from thiw blow tag and put thats into array with regex
<div class="titr2"><a href="Name.asp?nid=2923">TEXT </a></div>
TEXT
is utf-8 and i can not get that with using regex
<meta charset='UTF-8' />
<?php
error_reporting(1);
$handle='http://www.namefa.ir/Names.asp?pn=3&sx=F&fc=%D8%A8';
$handle = file_get_contents($handle);
preg_match_all('<div class="titr2" href=".*">(.*)<a href=".*"></a></div>)siU', $string, $matching_data);
print_r($matching_data);
?>