php 数组取值问题
array(array('aaa'=>'xxxxxxx''bbb'=>'yyyyyyy'))这个要怎么获取‘aaa’的值谢谢...
array(
array(
'aaa'=>'xxxxxxx'
'bbb'=>'yyyyyyy'
)
)这个要怎么获取‘aaa’的值 谢谢 展开
array(
'aaa'=>'xxxxxxx'
'bbb'=>'yyyyyyy'
)
)这个要怎么获取‘aaa’的值 谢谢 展开
1个回答
2016-03-29
展开全部
$dataArray = array("a"=>"hello" ,"b"=>"world" ,c""=>"!");
foreach(array_keys($dataArray) as $key){
$str = "<br>key :" . $key;
$str .= value :" . $dataArray[$key];
echo $str;
}
foreach(array_keys($dataArray) as $key){
$str = "<br>key :" . $key;
$str .= value :" . $dataArray[$key];
echo $str;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询