XBRL.php
public static function array_flip2( $array )
	{
		$result = array();
		foreach ( $array as $key => $value )
		{
			if ( isset( $result[ $value ] ) && in_array( $key, $result[ $value ] ) ) continue;
			$result[ $value ][] = $key;
		}
		return $result;
	}
public static function array_flip2( $array )
	{
		$result = array();
		foreach ( $array as $key => $value )
		{
			if ( isset( $result[ $value ] ) && in_array( $key, $result[ $value ] ) ) continue;
			$result[ $value ][] = $key;
		}
		return $result;
	}
public static function array_flip2 ( $ array ) { $ result = array ( ) ; foreach ( $ array as $ key => $ value ) { if ( isset ( $ result [ $ value ] ) && in_array ( $ key , $ result [ $ value ] ) ) continue ; $ result [ $ value ] [ ] = $ key ; } return $ result ; }
Creates a flipped array but allows for the possibility that the same fragment can be referenced by more than one locator
@param array $array Array of locators
@return array
Creates a flipped array but allows for the possibility that the same fragment can be referenced by more than one locator