- array_filter: documentation ( source)
<?php
$adjuntos = array(array('idAdjunto' => 1), array('idAdjunto' => 2));
$res = array_filter($adjuntos, function($item) {
return $item['idAdjunto'] == 3;
});
if ($arrAdjunto) {
echo 'ok';
}else{
echo 'false';
}