<?php
$array["historico"][] = [
"valor1" => 10,
"valor2" => 15,
"operador" => "*",
"resultado" => 150
];
$array["historico"][] = [
"valor1" => 50,
"valor2" => 5,
"operador" => "-",
"resultado" => 45
];
foreach( $array["historico"] as $key => $value ){
echo "{$value["valor1"]} {$value["operador"]} {$value["valor2"]} = {$value["resultado"]}\n";
}
PD9waHAKJGFycmF5WyJoaXN0b3JpY28iXVtdID0gWwogICAgICAgICJ2YWxvcjEiID0+IDEwLAogICAgICAgICJ2YWxvcjIiID0+IDE1LAogICAgICAgICJvcGVyYWRvciIgPT4gIioiLAogICAgICAgICJyZXN1bHRhZG8iID0+IDE1MAogICAgXTsKICAgIAokYXJyYXlbImhpc3RvcmljbyJdW10gPSBbCiAgICAgICAgInZhbG9yMSIgPT4gNTAsCiAgICAgICAgInZhbG9yMiIgPT4gNSwKICAgICAgICAib3BlcmFkb3IiID0+ICItIiwKICAgICAgICAicmVzdWx0YWRvIiA9PiA0NQogICAgXTsKICAgICAgICAgICAgICAKZm9yZWFjaCggJGFycmF5WyJoaXN0b3JpY28iXSBhcyAka2V5ID0+ICR2YWx1ZSApewogICAgZWNobyAieyR2YWx1ZVsidmFsb3IxIl19IHskdmFsdWVbIm9wZXJhZG9yIl19IHskdmFsdWVbInZhbG9yMiJdfSA9IHskdmFsdWVbInJlc3VsdGFkbyJdfVxuIjsKfQoK