Answer the question
In order to leave comments, you need to log in
How can I use the SIMPLE HTML DOM parser to display all blocks with the same classes in sequence?
$html = file_get_html('http://uriya/ru/');
foreach ($html->find(".programs-page-wrapper") as $elsements) {
$categories = $elsements;
}
echo $categories;
Answer the question
In order to leave comments, you need to log in
foreach ($html->find(".programs-page-wrapper") as $elements) {
$categories = $elements;
echo $categories;
}
foreach ($html->find(".programs-page-wrapper") as $elements) {
$categories[] = $elements;
}
echo implode('', $categories);
foreach ($html->find(".programs-page-wrapper") as $elements) {
$categories .= $elements;
}
echo $categories;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question