Skip to content

Inconsistency between the parameter order of array_filter() and array_map() #17490

@AhmedAlaa4611

Description

@AhmedAlaa4611

Description

array_filter() takes the array first then the callback That is reasonable
array_map() takes the callback first then the array That is irreasonable

This inconsistency can be confusing!!

PHP Version

8.4.2

Operating System

windows 10

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