how to know a nested array has a value php code example Example: php nested array contains in_array($search, array_column($array, 'name'))