i can't get the string that i need to grab from a web page
the coding like this
$content = implode('',file('http://xxx.xx.com/abc/')); eregi('Movement .* </tbody>, $content, $return);
Anyone can help ??
Thanks
And what is $return supposed to contain? Remember that you have to put () around parts of the pattern if you want to record the strings they match.
Thanks! but when i add(), i still can't get anything. The $return is for :
eregi('<title>(.*)</title>', $content,$return); $content=$return[0]; echo $content;
print_r($return) and see what it contains.
but i still can get the content i need
i think 0 for whole match. 1 for 1st match, 2 for 2nd match, ......
so try $return[1] 🙂