$imgstyle = $dom->find(".site-img-inner",0)->style; preg_match("/url\('(.*?)'\)/", $imgstyle, $match); echo $match[1];