public function checkboxes($name, array $list = [], $checked = null, array $options = [], $separator = '<br>')
    {
        $group = [];
        $name = \str_replace('[]', '', $name);

        foreach ($list as $id => $label) {
            $group[] = $this->generateCheckboxByGroup($id, $label, $name, $checked, $options);
        }

        return \implode($separator, $group);
    }
public function checkboxes($name, array $list = [], $checked = null, array $options = [], $separator = '<br>')
    {
        $group = [];
        $name = \str_replace('[]', '', $name);

        foreach ($list as $id => $label) {
            $group[] = $this->generateCheckboxByGroup($id, $label, $name, $checked, $options);
        }

        return \implode($separator, $group);
    }
public function checkboxes ( $ name , array $ list = [ ] , $ checked = null , array $ options = [ ] , $ separator = '<br>' ) { $ group = [ ] ; $ name = \ str_replace ( '[]' , '' , $ name ) ; foreach ( $ list as $ id => $ label ) { $ group [ ] = $ this -> generateCheckboxByGroup ( $ id , $ label , $ name , $ checked , $ options ) ; } return \ implode ( $ separator , $ group ) ; }
Create a checkboxes input field.

@param  string  $name
@param  array  $list
@param  bool|array  $checked
@param  array  $options
@param  string  $separator

@return string
Create a checkboxes input field .