src/ADT/List/SectionList.php
public function getIndex( $entry, $section = NULL )
	{
		if( !$section )
			$section	= $this->getSectionOfEntry( $entry );
		if( !isset( $this->list[$section] ) )
			throw new InvalidArgumentException( 'Invalid Section "'.$section.'".' );
		return array_search( $entry, $this->list[$section] );
	}
public function getIndex( $entry, $section = NULL )
	{
		if( !$section )
			$section	= $this->getSectionOfEntry( $entry );
		if( !isset( $this->list[$section] ) )
			throw new InvalidArgumentException( 'Invalid Section "'.$section.'".' );
		return array_search( $entry, $this->list[$section] );
	}
public function getIndex ( $ entry , $ section = NULL ) { if ( ! $ section ) $ section = $ this -> getSectionOfEntry ( $ entry ) ; if ( ! isset ( $ this -> list [ $ section ] ) ) throw new InvalidArgumentException ( 'Invalid Section "' . $ section . '".' ) ; return array_search ( $ entry , $ this -> list [ $ section ] ) ; }
Return the Index of a given String in the List.
@access		public
@param		string		$content		Content String of Entry
@param		string		$section		Section of Entry
@return		int
Return the Index of a given String in the List .