in_array for multidimensional array in php code example
Example 1: php nested array contains
in_array($search, array_column($array, 'name'))
Example 2: how to create multidimensional array in php
$cars = array
(
array("Volvo",22,18),
array("BMW",15,13),
array("Saab",5,2),
array("Land Rover",17,15)
);