public static function input(
        string $name, 
        string $type = "text", 
        string $value = null, 
        array $attributes = []
    ) : string 
    {
        $preAttributesInput = [
            "name" => $name,
            "type" => $type,
        ];
        if (!is_null($value)) {
            $preAttributesInput["value"] = $value;
        }
        $attributesInput = array_merge($preAttributesInput, $attributes);
        return self::tag("input", "", $attributesInput);
    }
public static function input(
        string $name, 
        string $type = "text", 
        string $value = null, 
        array $attributes = []
    ) : string 
    {
        $preAttributesInput = [
            "name" => $name,
            "type" => $type,
        ];
        if (!is_null($value)) {
            $preAttributesInput["value"] = $value;
        }
        $attributesInput = array_merge($preAttributesInput, $attributes);
        return self::tag("input", "", $attributesInput);
    }
public static function input ( string $ name , string $ type = "text" , string $ value = null , array $ attributes = [ ] ) : string { $ preAttributesInput = [ "name" => $ name , "type" => $ type , ] ; if ( ! is_null ( $ value ) ) { $ preAttributesInput [ "value" ] = $ value ; } $ attributesInput = array_merge ( $ preAttributesInput , $ attributes ) ; return self :: tag ( "input" , "" , $ attributesInput ) ; }
Create an input tag

@param string $name name attribute (always needed)
@param string $type type attribute (always needed)
@param string $value pre set value
@param array $attributes further attributes
@return string HTML Code
Create an input tag