2 of 2 deleted 13 characters in body


  $trends = file_get_contents('http://www.google.com/trends/hottrends/widget?pn=p1&tn=30');
  preg_match_all("/widget-title-in-list'>(.+?)</", $trends, $m);

  $q = urlencode($m[1][array_rand($m[1])]);
  $page = file_get_contents("http://www.google.com/search?q=$q&btnI=1");
  preg_match_all('/[A-Z]([\w,]+ ){2,}[\w, ]+?[.!]/', strip_tags($page), $m);
  echo $m[0][array_rand($m[0])];

This fetches the 30 most trending google searches, performs an "I Feel Lucky" search, and then displays a random sentence from that page with at least 3 words.


"She was considered a medal favourite in the event."

"Kate graduated from high school a year early."

"April 15, 2014, to promote compliance with the policy on biographies of living people."

"On behalf of Bryan, we, his family, would like to thank everyone for the outpouring of love, prayers and support."

"This article is about the American basketball player."

"Sorry, your browser either has JavaScript disabled or does not have any supported player."