I'm trying to parse a title from redirected page. Here is my code:
<?php
include_once('simple_html_dom.php');
$link="https://duckduckgo.com/?q=!ducky+google";
$html = file_get_html($link);
foreach ($html->find('title') as $text){
echo $text->plaintext."<br/>";
}
?>
The result should be "Google". Thanks