-1
Hello, I’m new to programming and I’m making a call from an array of objects like this:
$retorno = enviarREST($url, $data);
$content = json_decode($retorno);
foreach ($content->retorno as $produto){
    echo "SKU: ".$produto->codigo . "<br/>";  
    echo "NCM:  ".$produto->ncm . "<br/>";
    echo "Origem:  ".$produto->origem . "<br/>";
    echo "EAN:  ".$produto->gtin . "<br/>";
    echo "Codigo fabricante:  ".$produto->codigo_pelo_fornecedor . "<br/>";
}
and my goal is to put the result of this flame inside a varialvel, there is some tool for this?