<?php
return array(
'master' => array(
'details' => array(
'location' => 'chennai'
),
),
);
我如何从上面的数组中获取值
我需要分配 $Location = 'chennai'
但是,如何从上述数组中获取location的值?
注意:部分代码是从另一个位置获取的,包括
$array = include('/path/to/that/file.php');
$location = $array['master']['details']['location'];
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句