I have a string that contains html code:
$pagina = "<!DOCTYPE html>
<html lang='pt-BR'>
<title>Pagina</title>
<meta charset='UTF-8'>
<div class='conteudo'>
<div class='valor'>
1000
</div>
</div>
</html>
";
$valor = $pagina //pegar na variável $pagina o que esta entre <div class='valor'> e </div>
Is there a function in PHP that can help me?