I want to extract the information on this page using a script PHP Simple HTML DOM, Here is part of the code I wrote:
$html = file_get_html('https://www.digikala.com/product/dkp-7475119/');
foreach ($html->find('p.color-900') as $e) {
$color = $e->outertext;
echo $color ;
break;
}
But unfortunately the output I receive is Undefined variable