<?php
$handle = "Helicopters will patrol the temporary no-fly zone around New Jersey's MetLife Stadium Sunday, with F-16s based in Atlantic City ready to be scrambled if an unauthorized aircraft does enter the restricted"; $array = str_word_count($handle,1); for($x=0;$x<count($array);$x++) { if(ctype_upper($array[$x][0]) && strlen($array[$x])>3){ $find= file_get_contents('http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles='.$array[$x].' &rvprop=timestamp'); $miss = "missing"; if(strpos($find,$miss) !== False){ echo $array[$x]; echo "<br>"; } } }?>