I found a solution to get the first image from a Google Image result using Simple HTML DOM, as Sarfraz said.
Please check the code below. It currently works great for me.
$search_keyword=str_replace(' ','+',$search_keyword); $newhtml =file_get_html("https://www.google.com/search?q=".$search_keyword."&tbm=isch"); $result_image_source = $newhtml->find('img', 0)->src; echo '<img src="'.$result_image_source.'">';
source share