$pattern = '#http://www\.facebook\.com/profile\.php\?id=([0-9]) #i';
$pattern = '#http://www\.facebook\.com/profile\.php\?id=([0-9])&ref=sgm#i';
Dener misin?
preg_match_all($pattern,$connection,$result,PREG_SET_ORDER);
for($i = 0; $i < count($result); $i++)
{
echo $result[$i][1]."\n";
}
"preg_match_all() expects parameter 2 to be string, array given in " Hocam