XBRL.php
public static function findDimensionMember( $nodes, $label )
	{
		if ( isset( $nodes[ $label ] ) ) return $nodes[ $label ];

		foreach ( $nodes as $nodeKey => $node )
		{
			if ( ! isset( $node['children'] ) ) continue;
			$result = XBRL::findDimensionMember( $node['children'], $label );
			if ( $result !== false ) return $result;
		}

		return false;
	}
public static function findDimensionMember( $nodes, $label )
	{
		if ( isset( $nodes[ $label ] ) ) return $nodes[ $label ];

		foreach ( $nodes as $nodeKey => $node )
		{
			if ( ! isset( $node['children'] ) ) continue;
			$result = XBRL::findDimensionMember( $node['children'], $label );
			if ( $result !== false ) return $result;
		}

		return false;
	}
public static function findDimensionMember ( $ nodes , $ label ) { if ( isset ( $ nodes [ $ label ] ) ) return $ nodes [ $ label ] ; foreach ( $ nodes as $ nodeKey => $ node ) { if ( ! isset ( $ node [ 'children' ] ) ) continue ; $ result = XBRL :: findDimensionMember ( $ node [ 'children' ] , $ label ) ; if ( $ result !== false ) return $ result ; } return false ; }
Get the member corresponding to a member label.  Dimension members are held in a hierarchical structure.
This function is able to find a member in such a structure.
@param array $nodes A collection of nodes prepresenting the member hierarchy of a hypercube dimension
@param string $label The label corresponding to a dimension member or dimension domain
@return array|boolean Return false if the member is not found or the member.
Get the member corresponding to a member label . Dimension members are held in a hierarchical structure . This function is able to find a member in such a structure .