public function removeAllowedExtension($extension)
    {
        $key = array_search($extension, $this->allowedExtensions);
        if ($key !== false) {
            unset($this->allowedExtensions[$key]);
            return true;
        }

        return false;
    }
public function removeAllowedExtension($extension)
    {
        $key = array_search($extension, $this->allowedExtensions);
        if ($key !== false) {
            unset($this->allowedExtensions[$key]);
            return true;
        }

        return false;
    }
public function removeAllowedExtension ( $ extension ) { $ key = array_search ( $ extension , $ this -> allowedExtensions ) ; if ( $ key !== false ) { unset ( $ this -> allowedExtensions [ $ key ] ) ; return true ; } return false ; }
Remove an allowed extension from the list.

@param string $extension
@return boolean true if found and removed, false otherwise
Remove an allowed extension from the list .