用于从另一个数组打印对象数组值的正确语法

时间:2019-02-18 19:25:15

标签: php

当我们拥有关联数组值时,我们可以通过这种方式回显

<?php
echo $arr1[$arr2[1]];
?>

Objective数组的正确语法是什么?我试过了,它不起作用

<?php
echo $arr1->{{$arr2[1]}}; // This is not the correct syntax
?>

Objective数组的正确语法是什么?

0 个答案:

没有答案
相关问题