I want to make an explode as follows:
$variavel = $_GET["url"];
$var1 = explode('<div id="$variavel">',$string);
$var2 = explode('</div>',$var1[1]);
$resultado = $var2[0];
but it is giving error when trying to put the $ variable inside the () of the explode! Can someone help me!