src/Helpers/Form.php
public static function submit($text, $attributes = array())
    {
        if (isset($attributes['name'])) {
            $name = $attributes['name'];
            unset($attributes['name']);
        } else {
            $name = 'submit';
        }

        return self::input('submit', $name, array_merge(array('value' => $text), $attributes));
    }
public static function submit($text, $attributes = array())
    {
        if (isset($attributes['name'])) {
            $name = $attributes['name'];
            unset($attributes['name']);
        } else {
            $name = 'submit';
        }

        return self::input('submit', $name, array_merge(array('value' => $text), $attributes));
    }
public static function submit ( $ text , $ attributes = array ( ) ) { if ( isset ( $ attributes [ 'name' ] ) ) { $ name = $ attributes [ 'name' ] ; unset ( $ attributes [ 'name' ] ) ; } else { $ name = 'submit' ; } return self :: input ( 'submit' , $ name , array_merge ( array ( 'value' => $ text ) , $ attributes ) ) ; }
Creates a form submit button.

@param string $text
@param string $attributes

@return string
Creates a form submit button .