public static function rmFromList($element, $list) {
		$items = explode(',', $list);
		foreach ($items as $k => $v) {
			if ($v == $element) {
				unset($items[$k]);
			}
		}
		return implode(',', $items);
	}
public static function rmFromList($element, $list) {
		$items = explode(',', $list);
		foreach ($items as $k => $v) {
			if ($v == $element) {
				unset($items[$k]);
			}
		}
		return implode(',', $items);
	}
public static function rmFromList ( $ element , $ list ) { $ items = explode ( ',' , $ list ) ; foreach ( $ items as $ k => $ v ) { if ( $ v == $ element ) { unset ( $ items [ $ k ] ) ; } } return implode ( ',' , $ items ) ; }
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
Removes an item from a comma - separated list of items .