DEV Community

Rigal Patel
Rigal Patel

Posted on

Search and count value in multidimensional array and make new array based of search value [duplicate]

I have a multidimensional array. I want to search and count values and make an array.


Array
(
[0] => Array
(
[0] => Jon
[1] => NO
)
[1] => Array
    (
        [0] => Andew
        [1] => NO
    )

[2] => Array
    (
        [0] => Walid
        [1] =&gt; YES</code></pre>…
</p>



?signin=true

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay