public static function remove(&$list, $args)
    {
        self::assertArgsNumber(1, $args);

        foreach ($list as $key => $value) {
            if ($value === $args[0]) {
                unset($list[$key]);
            }
        }
    }
public static function remove(&$list, $args)
    {
        self::assertArgsNumber(1, $args);

        foreach ($list as $key => $value) {
            if ($value === $args[0]) {
                unset($list[$key]);
            }
        }
    }
public static function remove ( & $ list , $ args ) { self :: assertArgsNumber ( 1 , $ args ) ; foreach ( $ list as $ key => $ value ) { if ( $ value === $ args [ 0 ] ) { unset ( $ list [ $ key ] ) ; } } }
Removes an element from the list.

@param  array|Traversable $list
@param  array $args
Removes an element from the list .