function form_input($data = '', string
$value = '',
$extra = '', string
$type = 'text'
): string
{ $defaults =
[ 'type' =>
$type,
'name' =>
is_array($data) ? '' :
$data,
'value' =>
$value,
];
return '<input ' .
parse_form_attributes($data,
$defaults) .
stringify_attributes($extra) .
_solidus() . ">\n";
}}if (!
function_exists('form_password'
)) { /**
* Password Field
*
* Identical to the input function but adds the "password" type
*
* @param array|string $data
* @param array|object|string $extra string, array, object that can be cast to array
*/