Ajax/semantic/html/modules/HtmlDropdown.php
public function insertItem($item,$position=0){
		$itemO=$this->beforeAddItem($item);
		 $start = array_slice($this->items, 0, $position);
		 $end = array_slice($this->items, $position);
		 $start[] = $item;
		 $this->items=array_merge($start, $end);
		 return $itemO;
	}
public function insertItem($item,$position=0){
		$itemO=$this->beforeAddItem($item);
		 $start = array_slice($this->items, 0, $position);
		 $end = array_slice($this->items, $position);
		 $start[] = $item;
		 $this->items=array_merge($start, $end);
		 return $itemO;
	}
public function insertItem ( $ item , $ position = 0 ) { $ itemO = $ this -> beforeAddItem ( $ item ) ; $ start = array_slice ( $ this -> items , 0 , $ position ) ; $ end = array_slice ( $ this -> items , $ position ) ; $ start [ ] = $ item ; $ this -> items = array_merge ( $ start , $ end ) ; return $ itemO ; }
Insert an item at a position
@param mixed $item
@param int $position
@return HtmlDropdownItem
Insert an item at a position