Skip to content

FILTER_VALIDATE_INT should support FILTER_FLAG_ALLOW_THOUSAND #13377

Open
@divinity76

Description

@divinity76

Description

just like

filter_var("231,402,800",FILTER_VALIDATE_FLOAT, FILTER_FLAG_ALLOW_THOUSAND)

returns

float(231402800)

doing

filter_var("231,402,800",FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_THOUSAND)

should return

int(231402800)

rather than the current

bool(false)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions