php nested array contains
snippet in php

php nested array contains

user2141

in_array($search, array_column($array, 'name'))