I need to extract some data from a webpage with php. The part that I\'m interested in is structured similarly to this:
Make two array
$fruits=array(); $animals=array();
t and in loop when you get .
if(target=='fruit') { array_push($fruits,$valueofelement); } else if ($target=='animal') { array_push($animals,$valueofelement); }