original_string: public static function rmFromList($element, $list) {
  		$items = explode(',', $list);
  		foreach ($items as $k => $v) {
  			if ($v == $element) {
  				unset($items[$k]);
  			}
  		}
  		return implode(',', $items);
  	}
code: public static function rmFromList($element, $list) {
  		$items = explode(',', $list);
  		foreach ($items as $k => $v) {
  			if ($v == $element) {
  				unset($items[$k]);
  			}
  		}
  		return implode(',', $items);
  	}
code_tokens: public static function rmFromList ( $ element , $ list ) { $ items = explode ( ',' , $ list ) ; foreach ( $ items as $ k => $ v ) { if ( $ v == $ element ) { unset ( $ items [ $ k ] ) ; } } return implode ( ',' , $ items ) ; }
docstring: Removes an item from a comma-separated list of items.
  
  @param string $element element to remove
  @param string $list comma-separated list of items (string)
  @return string new comma-separated list of items
docstring_tokens: Removes an item from a comma - separated list of items .