<?php
function remove_acronyms($str)
{
$str_arr = explode(' ', $str);
if (empty($str_arr)) return false;
foreach ($str_arr as $index => $val)
{
if ($val==strtoupper($val)) unset($str_arr[$index]);
}
return implode(' ', $str_arr);
}
$draft = "The war between the CIA and NSA started in K2 when the FBI hired M";
print remove_acronyms($draft);