Home » Php » Filter php array by column value

Filter php array by column value

Posted by: admin June 30, 2018 Leave a comment

Questions:

I want to filter out the array with status=paid, is there any builtin PHP function for this?

Array
(

[0] => Array
        (

            [id] => 140
            [status] => paid

        )

[1] => Array
        (

            [id] => 140
            [status] => new

        )
[2] => Array
        (

            [id] => 140
            [status] => new

        )
)
Answers: