请帮我看一下php中的以下数组内容。
Array(
[Header] => ABCD
[Hall] => 36
[Stand] => B10-C9
[Logo] => xyz.JPG
[Novelties] => xyz.
[StandManager] => Mr. ABCD
[Products] => xyz.
[Address] => assdf
[Phone] => ( 033) 1232430
[Web] => http://www.abcd.com
[Email] => test@gmail.com
[Fax] => 1234567
[Google] => http://maps.google.com/maps?
[Images] => 1.jpg,2.jpg,3.jpg
)
答案 0 :(得分:1)
尝试
echo "<pre>"; print_r($your_array); echo "</pre>";
OR
echo "<pre>"; var_dump($your_array); echo "</pre>";
用于单独存储特定元素。
$new_array = array();
foreach($your_array as $key=>$array){
if(($key == 'Header') || ($key == 'Hall')){
$new_array[$key][] = $array;
}
}
答案 1 :(得分:1)
在阅读您的评论后,您可以在问题中指定详细信息......
...尝试以下:
echo $your_array['Header'];
echo $your_array['Hall'];
...严重