library/Haste/Util/Arrays.php
public static function removeValue($varValue, array &$arrArray)
    {
        if (($intPosition = array_search($varValue, $arrArray)) !== false)
        {
            unset($arrArray[$intPosition]);

            return true;
        }

        return false;
    }
public static function removeValue($varValue, array &$arrArray)
    {
        if (($intPosition = array_search($varValue, $arrArray)) !== false)
        {
            unset($arrArray[$intPosition]);

            return true;
        }

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

@param       $varValue
@param array $arrArray

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