public function removeOption( $longCode )
    {
        $retVal = FALSE;

        $i = 0;

        foreach ( $this->options as $option )
        {
            if ( $longCode === $option->longCode )
            {
                break;
            }

            $i++;
        }

        if ( $i !== count( $this->options ) )
        {
            unset( $this->options[ $i ] );

            $retVal = TRUE;
        }

        return $retVal;
    }
public function removeOption( $longCode )
    {
        $retVal = FALSE;

        $i = 0;

        foreach ( $this->options as $option )
        {
            if ( $longCode === $option->longCode )
            {
                break;
            }

            $i++;
        }

        if ( $i !== count( $this->options ) )
        {
            unset( $this->options[ $i ] );

            $retVal = TRUE;
        }

        return $retVal;
    }
public function removeOption ( $ longCode ) { $ retVal = FALSE ; $ i = 0 ; foreach ( $ this -> options as $ option ) { if ( $ longCode === $ option -> longCode ) { break ; } $ i ++ ; } if ( $ i !== count ( $ this -> options ) ) { unset ( $ this -> options [ $ i ] ) ; $ retVal = TRUE ; } return $ retVal ; }
Removes an option by its long code.

@param string $longCode option long code

@return bool TRUE on success, FALSE on failure
Removes an option by its long code .