public function submit($caption = null, array $options = [])
    {
        $options = optionsParser($options)->add('type', 'submit');

        return self::button($caption, $options->toArray());
    }
public function submit($caption = null, array $options = [])
    {
        $options = optionsParser($options)->add('type', 'submit');

        return self::button($caption, $options->toArray());
    }
public function submit ( $ caption = null , array $ options = [ ] ) { $ options = optionsParser ( $ options ) -> add ( 'type' , 'submit' ) ; return self :: button ( $ caption , $ options -> toArray ( ) ) ; }
Creates a submit button
@param string $caption The label appearing on the submit button or an
image
@param array $options HTML attributes and options
@return string
@uses button()
Creates a submit button