public function removeClass($className)
    {
        if(strlen($className) < 1)
        {
            throw new HTMLTagException("Class name is empty");
        }

        $classes = explode(" ", $this->getClasses());
        $this->clearClasses();

        foreach($classes as $class) {
            if(strtolower($class) != strtolower($className))
            {
                $this->addClass($class);
            }
        }

        return $this;
    }
public function removeClass($className)
    {
        if(strlen($className) < 1)
        {
            throw new HTMLTagException("Class name is empty");
        }

        $classes = explode(" ", $this->getClasses());
        $this->clearClasses();

        foreach($classes as $class) {
            if(strtolower($class) != strtolower($className))
            {
                $this->addClass($class);
            }
        }

        return $this;
    }
public function removeClass ( $ className ) { if ( strlen ( $ className ) < 1 ) { throw new HTMLTagException ( "Class name is empty" ) ; } $ classes = explode ( " " , $ this -> getClasses ( ) ) ; $ this -> clearClasses ( ) ; foreach ( $ classes as $ class ) { if ( strtolower ( $ class ) != strtolower ( $ className ) ) { $ this -> addClass ( $ class ) ; } } return $ this ; }
Removes the specified class name.
@param   string  $className
@return  HTMLTag
@throws  HTMLTagException
Removes the specified class name .