src/libs/FullNameParser.php
public function get_pro_suffix($name)
	{

		$found_suffix_arr = array();
		foreach ($this->dict['suffixes']['prof'] as $suffix) {
			if (preg_match('/[,\s]+' . preg_quote($suffix) . '\b/i', $name, $matches)) {
				$found_suffix = trim($matches[0]);
				$found_suffix = rtrim($found_suffix, ',');
				$found_suffix = ltrim($found_suffix, ',');
				$found_suffix_arr[] = trim($found_suffix);
			}
		}
		return $found_suffix_arr;
	}
public function get_pro_suffix($name)
	{

		$found_suffix_arr = array();
		foreach ($this->dict['suffixes']['prof'] as $suffix) {
			if (preg_match('/[,\s]+' . preg_quote($suffix) . '\b/i', $name, $matches)) {
				$found_suffix = trim($matches[0]);
				$found_suffix = rtrim($found_suffix, ',');
				$found_suffix = ltrim($found_suffix, ',');
				$found_suffix_arr[] = trim($found_suffix);
			}
		}
		return $found_suffix_arr;
	}
Checks for the existence of, and returns professional suffix

@param string $name the name you wish to test
@return mixed returns the suffix if exists, false otherwise