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>';
} SELECT COUNT(*), GROUP_CONCAT(`t1`.`user_id` SEPARATOR ',')
FROM `table` AS `t1`
JOIN `table` AS `t2` ON `t2`.`user_id` = `t1`.`user_id`
AND `t1`.`visit_date` = :date1
AND `t2`.`visit_date` = :date2Шаг 1.
$i = 0.
Удаляем атрибут 0.
Атрибуты 1 и 2 получают номера 0 и 1.
Шаг 2.
$i = 1.
Удаляем атрибут 1.
Остался атрибут 0.foreach ($this->allowableTags as $tag) {
foreach ($doc->getElementsByTagName($tag) as $element) {
$attributes = $element->attributes;
while ($attributes->length > 0) {
$attr = $attributes->item(0);
$this->clearElement($element, $attr);
}
}
}