$_POST['json']
$_POST['sign']
$_POST['vpbx_api_key']
$crc = md5("$mrh_login:$out_summ:$inv_id:$receipt:$mrh_pass1:shp_item=$shp_item");
$crc = md5("$mrh_login:$out_summ:$inv_id:$receipt:$mrh_pass1");
<?php
//$arr = ...; //ваш исходный массив
$results = [];
foreach($arr as $row)
{
if(isset($row->parameters))
{
foreach($row->parameters as $param)
{
$results[$param->key] = isset($results[$param->key]) ? $results[$param->key] :
(object)[
'key' => $param->key,
'name' => $param->name,
'par' => [],
];
$results[$param->key]->par[] = (object)[
'value' => $param->value,
'idx' => $param->idx,
];
}
}
}
$results = array_values($results);
print_r($results);
<?php
$a = 260 * 0.98;
$b = 254.8;
var_dump(number_format($a, 20));
var_dump(number_format($b, 20));
//string(24) "254.79999999999998294697"
//string(24) "254.80000000000001136868"
Если пустой $_POST то посмотрите php://input
$raw_post_data = file_get_contents("php://input");