src/Arrays/ArrayUtil.php
public function removeValue($value, array &$array): bool
    {
        if (false !== ($intPosition = array_search($value, $array))) {
            unset($array[$intPosition]);

            return true;
        }

        return false;
    }
public function removeValue($value, array &$array): bool
    {
        if (false !== ($intPosition = array_search($value, $array))) {
            unset($array[$intPosition]);

            return true;
        }

        return false;
    }
public function removeValue ( $ value , array & $ array ) : bool { if ( false !== ( $ intPosition = array_search ( $ value , $ array ) ) ) { unset ( $ array [ $ intPosition ] ) ; return true ; } return false ; }
Removes a value in an array.

@param       $value
@param array $array

@return bool Returns true if the value has been found and removed, false in other cases
Removes a value in an array .