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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more