$array = Array
(
[0] => Array
(
[id] => 46
[title] => sometext
)
[1] => Array
(
[id] => 47
[title] => sometext
)
[2] => Array
(
[id] => 48
[title] => sometext
)
[3] => Array
(
[id] => 49
[title] => sometext
)
[4] => Array
(
[id] => 50
[title] => sometext
)
)
У нас есть массив и переменная:
$variable = 48; //some number
Как мы можем проверить, существует ли $variable
в некоторых массивах ['id']
внутри $array
?
Возврат true
или false
.