deaths
This commit is contained in:
parent
878f7ef192
commit
5a9f7090b6
@ -21,13 +21,14 @@ foreach ($data as $scan){
|
||||
$country = array();
|
||||
$p2 = $parts[$i]->childNodes;
|
||||
$country[] = $p2[0]->textContent;
|
||||
for ($j=0; $j < $p2->length; $j++){
|
||||
/*for ($j=0; $j < $p2->length; $j++){
|
||||
var_dump($p2[$j]->textContent);
|
||||
}
|
||||
}*/
|
||||
$deaths = (strpos($p2[6]->textContent, "+") !== false?$p2[8]->textContent:$p2[6]->textContent);
|
||||
$active = (strpos($p2[6]->textContent, "+") !== false?$p2[12]->textContent:$p2[10]->textContent);
|
||||
$country[] = intval(str_replace(",", "", $p2[2]->textContent));
|
||||
$country[] =intval(str_replace(",", "", $deaths));
|
||||
$country[] =intval(str_replace(",", "", $p2[10]->textContent));
|
||||
$country[] =intval(str_replace(",", "", $active));
|
||||
$country[] =intval(str_replace(",", "", $p2[12]->textContent));
|
||||
$document[] = $country;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user