protected function getPrefixGroups(array $strings)
	{
		$groups = [];
		foreach ($strings as $k => $string)
		{
			if ($this->hasOptionalSuffix($string))
			{
				$groups[serialize(end($string))][$k] = $string;
			}
		}

		return $groups;
	}
protected function getPrefixGroups(array $strings)
	{
		$groups = [];
		foreach ($strings as $k => $string)
		{
			if ($this->hasOptionalSuffix($string))
			{
				$groups[serialize(end($string))][$k] = $string;
			}
		}

		return $groups;
	}
protected function getPrefixGroups ( array $ strings ) { $ groups = [ ] ; foreach ( $ strings as $ k => $ string ) { if ( $ this -> hasOptionalSuffix ( $ string ) ) { $ groups [ serialize ( end ( $ string ) ) ] [ $ k ] = $ string ; } } return $ groups ; }
Get the list of potential prefix strings grouped by identical suffix

@param  array[] $strings
@return array
Get the list of potential prefix strings grouped by identical suffix