php nested array contains
in_array($search, array_column($array, 'name'))
php nested array contains
in_array($search, array_column($array, 'name'))
php check if value exists in multidimensional array
// 1d array
in_array('something', $array);
// 2d array
array_column($multi_array, 'your_column');
/**
0 => ['hi'=>0, 'your_column'=>1, 'hi'=>0, 'your_column'=>3]
will be
[1, 3]
and then you can apply the in_array function on that new array ^
*/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us