I'm looking for a way to find value in array compared to another one.
Let's assume we have a php array : (I take the one of this question because it's exactly my case)
$userdb = array(
array(
'uid' => '100',
'name' => 'Sandra Shush',
'pic_square' => 'urlof100'
),
array(
'uid' => '5465',
'name' => 'Stefanie Mcmohn',
'pic_square' => 'urlof100'
),
array(
'uid' => '40489',
'name' => 'Michael',
'pic_square' => 'urlof40489'
)
);
What's I need is to know if there's a way to find (for example) the value of name where uid is 100.
I hope to have been clear, thanks for your help :)