function getIdClass($html3) {
  $dt=$dt1=array();
  $html = new simple_html_dom();
  $html->load($html3);  
  foreach ($html->find('*') as $el) { 
    if($el->getAttribute("id")!='') {
      $dt1['id'][]=$el->getAttribute("id");
    }
  }
  foreach ($html->find('*') as $el) { 
    if($el->getAttribute("class")!='') {
      $dt1['class'][]=$el->getAttribute("class");
    }
  }

  foreach ($html->find('*') as $el) { 
    if($el->getAttribute("data-lang")!='') {
      $dt1['lang'][]=$el->getAttribute("data-lang");
    }
  }
  foreach ($html->find('*') as $el) { 
    if($el->getAttribute("data-ph_lang")!='') {
      $dt1['ph_lang'][]=$el->getAttribute("data-ph_lang");
    }
  }
  if($dt1['lang']) {
    $dt['lang'] = array_unique($dt1['lang']);
  }
  if($dt1['ph_lang']) {
    $dt['ph_lang'] = array_unique($dt1['ph_lang']);
  }
  if($dt1['id']) {
    $dt['id'] = array_unique($dt1['id']);
  }
  if($dt1['class']) {
    $dt['class'] = array_unique($dt1['class']);
  }
  return $dt;
}