$lines = file('http://www.adexmart.com/product.php?id_product=276&utm_source=shopmania&utm_medium=cpc&utm_campaign=direct_link');
// Loop through our array, show HTML source as HTML source; and line numbers too.
foreach ($lines as $line_num => $line)
{
if(htmlspecialchars($line)=="</div> ");
echo htmlspecialchars($line)."<br>";
}
?>
I am printing lines (all html code) successfully, but I dont able to check a condition for a line.
How I can check condition in for loop.