src/Radio.php
public function id() : string
    {
        $name = $this->name();
        $name = preg_replace("@\[\]$@", '', $name);
        if ($name) {
            return $name.'-'.$this->value;
        }
        return $name;
    }
public function id() : string
    {
        $name = $this->name();
        $name = preg_replace("@\[\]$@", '', $name);
        if ($name) {
            return $name.'-'.$this->value;
        }
        return $name;
    }
public function id ( ) : string { $ name = $ this -> name ( ) ; $ name = preg_replace ( "@\[\]$@" , '' , $ name ) ; if ( $ name ) { return $ name . '-' . $ this -> value ; } return $ name ; }
Returns the ID of the element.

@return string
Returns the ID of the element .