There are three array of the form:
Array (
[0] => NAME
[1] => NAME
[n] => n
)
Array (
[0] => DATE
[1] => DATE
[n] => n
)
Array (
[0] => TEXT
[1] => TEXT
[n] => n
)
As possible to combine these three arrays in one of the next species?
Array(
Array (
[0] => NAME
[1] => DATE
[2] => TEXT
)
Array (
[0] => NAME
[1] => DATE
[2] => TEXT
)
Array (
[0] => NAME
[1] => DATE
[2] => TEXT
)
and etc.
)
Arrays build with the use of library PHP Simple HTML DOM Parser Manual that's the way
// Search for the name
$array_nameNews = array();
foreach($html->find('div.narrow_column div h2 a') as $element) {
$nameNews = $element->innertext;
$array_nameNews[] = $nameNews;
}
// Search the date
$array_dateNews = array();
foreach($html->find('div.narrow_column div div.postdate') as $element) {
$dateNews = $element->innertext;
$array_dateNews[] = $dateNews;
}
// Search text
$array_textNews = array();
foreach($html->find('div.narrow_column div div.postdate span') as $element) {
$textNews = $element->innertext;
$array_textNews[] = $textNews;
}