I have this value, doesn’t matter how I obtained it
[B]string(2) “78”
I have another array, which is something like this
[code=php]
$array[0][id] = 52;
$array[1][id] = 12;
$array[2][id] = 78;
$array[3][id] = 33;
I would like to select $array[?] where “78” == $array[?][id]. Without foreach loop. It would result in 4000 heavy comparisons and I’d like to avoid that.
I have ID of product, I’d like to select entire product, AND ALL IT’S ELEMENTS, where one of its elements (id) is equal to product ID I want to select.
So the result would be:
[code=php]
$array[2][id] = 78;
$array[2][some] = “LOL”;
$array[2][more] = “QWE”;
So essentially [B]$array[2]