form::reset PHP Method

reset() public static method

public static reset ( $value = null, $attributes = [] )
    public static function reset($value = null, $attributes = array())
    {
        return static::input('reset', null, $value, $attributes);
    }

Usage Example

Example #1
0
 function init()
 {
     $formx = new form();
     global $error;
     $formx->set_error(0);
     if (!$error) {
         $formx->reset();
     }
 }
All Usage Examples Of form::reset