$userdb = [
[
"uid" => '100',
"name" => 'Sandra Shush',
"url" => 'urlof100',
],
[
"uid" => '5465',
"name" => 'Stefanie Mcmohn',
"pic_square" => 'urlof100',
],
[
"uid" => '40489',
"name" => 'Michael',
"pic_square" => 'urlof40489',
]
];
$key = array_search(40489, array_column($userdb, 'uid'));
foreach ($peoples as $peopleProp) {
echo '';
echo '' . $peopleProp['ID'] . '';
$key = array_search($people['PHONE_NUMBER_ID'], array_column($userDb, 'id'));
if($key !== false) {
echo 'Номер телефона ' . $phoneNumbers[$key]['PHONE'] . '';
} else {
echo ' - ';
}
echo '';
}