1// 1d array
2in_array('something', $array);
3
4// 2d array
5array_column($multi_array, 'your_column');
6
7/**
80 => ['hi'=>0, 'your_column'=>1, 'hi'=>0, 'your_column'=>3]
9will be
10[1, 3]
11and then you can apply the in_array function on that new array ^
12*/
1$userdb=Array
2(
3(0) => Array
4 (
5 (uid) => '100',
6 (name) => 'Sandra Shush',
7 (url) => 'urlof100'
8 ),
9
10(1) => Array
11 (
12 (uid) => '5465',
13 (name) => 'Stefanie Mcmohn',
14 (pic_square) => 'urlof100'
15 ),
16
17(2) => Array
18 (
19 (uid) => '40489',
20 (name) => 'Michael',
21 (pic_square) => 'urlof40489'
22 )
23);
24
25$key = array_search(40489, array_column($userdb, 'uid'));