<?php
$resposta = array('shopId' => 33015842, 'paymentMethod' => 'E_COMMERCE',
'contractNumber' => 1026194250,
'Nome' => 'Fabio');
foreach ($resposta as $chave => $valor) {
if ($chave == 'shopId' or $chave == 'paymentMethod'){
echo "{$chave} {$valor} \n";
}
}
PD9waHAKCiRyZXNwb3N0YSA9IGFycmF5KCdzaG9wSWQnID0+IDMzMDE1ODQyLAogICAgICAgICAgICAgICAgICAncGF5bWVudE1ldGhvZCcgPT4gJ0VfQ09NTUVSQ0UnLAoJCQkJICAnY29udHJhY3ROdW1iZXInID0+IDEwMjYxOTQyNTAsCgkJCQkgICdOb21lJyA9PiAnRmFiaW8nKTsKCQkJCSAgCmZvcmVhY2ggKCRyZXNwb3N0YSBhcyAkY2hhdmUgPT4gJHZhbG9yKSB7CglpZiAoJGNoYXZlID09ICdzaG9wSWQnIG9yICRjaGF2ZSA9PSAncGF5bWVudE1ldGhvZCcpewoJCWVjaG8gInskY2hhdmV9IHskdmFsb3J9IFxuIjsKCX0KfQ==