function getMethodCommentAttributeFirstWord($comment, $attribute) { $pieces = strstrafter($comment, '@' . $attribute); if ($pieces !== FALSE) { $val = MethodTable::cleanComment($pieces); return trim(strrstr($val, ' ')); } return ""; }