returning data in Array_filter

1

Friends, in the code below I do the following:

$term = '422';

$data = json_decode($response);
$filtered = array_filter($data, function($item) use ($term) {
   return stripos($item->id, $term) !== false;
});

print_r($filtered);

And then I have this return below:

 Array ( [0] => stdClass Object ( [id] => 422 [filial] => 4 [name] => 
 COD. 069 30 Mb TRANSPORTE [nome_amigavel] => 30 Mb [mensalidade] => 
 1500.00 [desconto] => 0.00 [ativo] => 1 [tipo] => 3 [instalacao] => 
 1500.00 [bnd_up] => 0 [bnd_down] => 30000 ) ) 

How do I get rid of this return with an echo or print only ONE information! example: 30 Mb

    
asked by anonymous 30.08.2017 / 15:03

0 answers