title: PHP - Get all images from class with simple html dom parser
body: <p>I need to get all images from the info box in Wikipedia page. I made this code but it gets all images from the page not only for the info box ,i need some help.</p>
  
  <pre><code>include("simple_html_dom.php");
  
  $wikilink = "http://en.wikipedia.org/wiki/Aberdeen_F.C.";
  
  //Wikipedia page to parse
      $html = file_get_html($wikilink);
  
  
      $images_array = array();
  
      foreach ($html-&gt;find('table.infobox vcard td, img') as $element) {
          $allimages = strtok($element-&gt;src . '|', '|');
          array_push($images_array, $allimages);
      }
  print_r($images_array);
  </code></pre>
  
  <p>The below example shows the html elements what i want to get<a href="https://i.stack.imgur.com/9pLqA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9pLqA.png" alt="The above example shows the html elements what i want to get"></a></p>