[barcodes] => Array(
[0] => 2014189437005
)
array_walk_recursive(
$response,
function($v,$k)use(&$ean){
if($k==='barcodes'){
$ean[] = $v;
}
});
function w(&$ean,$res){
foreach($res as $k=>$v){
if($k==='barcodes')
$ean[] = $v;
if(is_array($v))
w($ean,$v);
}
}
w($ean,$response);