Php 如何访问此数组中的值

Php 如何访问此数组中的值,php,arrays,laravel,laravel-8,Php,Arrays,Laravel,Laravel 8,我有这样一个数组: 我需要访问设置为876的值 此数组背后的代码如下所示: try { $totalTck = $TransactionBuilder->triggerSmartContract( (array)$abi, $contractH, $function, $params, $fe

我有这样一个数组:

我需要访问设置为876

此数组背后的代码如下所示:

       try {
            $totalTck = $TransactionBuilder->triggerSmartContract(
                (array)$abi,
                $contractH,
                $function,
                $params,
                $feeLimit,
                $addressH,
                $callValue = 0,
                $bandwidthLimit = 0);

                dd($totalTck);
        } catch (\IEXBase\TronAPI\Exception\TronException $e) {
            die($e->getMessage());
        }

如何从该数组中获取

因为它的对象在数组中。所以您应该以箭头的形式访问它

$totalTck[0]->value

如果它包含多个数组,那么最好使用loop或else$totalTck[0]['value']['value']@JohnLobo
不能使用phpseclib\Math\biginger类型的对象作为数组
。@是否可以打印\r而不是dd以便我可以看到整个数组result@JohnLobo
Array([0]=>phpseclib\Math\biginger对象([value]=>0x036c[engine]=>gmp))
$totalTck[0]->价值观