require('simple_html_dom.php');
$html = file_get_html($url);
$div = $html->find('div#foro', 0);
foreach($div->find('a') as $link) {
echo $link->href.'<br>';
}
$text = preg_replace("/(?<=[а-яё:;,.])\s*•/ismu", " <br>•", $text);
replacement may contain references of the form \\n or (since PHP 4.0.4) $n, with the latter form being the preferred one. Every such reference will be replaced by the text captured by the n'th parenthesized pattern.
preg_match_all('/(x|y)(?=.*?x)/', 'x y x', $match);
var_dump($match);
array(2) {
[0]=>
array(2) {
[0]=>
string(1) "x"
[1]=>
string(1) "y"
}
[1]=>
array(2) {
[0]=>
string(1) "x"
[1]=>
string(1) "y"
}
}