custom taxonomy – Array Match – Get Value

Question

I need to get the url of the array that matches the $brandId variable.

Like the brandId variable value is 30. so I need to get https://youtube.com.

How can I do that?

$brandId = 30;

Array
(
    [0] => Array
        (
            [url] => https://facebook.com
            [brand] => 8
        )

    [1] => Array
        (
            [url] => https://google.com
            [brand] => 28
        )

    [2] => Array
        (
            [url] => https://youtube.com
            [brand] => 30
        )

    [3] => Array
        (
            [url] => https://nike.com
            [brand] => 31
        )

)

0
Sarequl Basar 1 month 2021-08-17T14:52:11-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse