我有一个这样的数组:
[your-name] => a
[your-subject] => b
[text-1] => b
[your-message] => b`
但是我想以我能获得所有值的方式来解析它,比如
"your-name", "a","your-subject","b", "text-1" "b" "your-message", "b"`
所以,请让我知道如何实现上述
答案 0 :(得分:0)
尝试做类似的事情
foreach($yourArray as $key => $value) {
echo $value ." ". $key . ;
}
它将是你想要的回声"你的名字"," a","你的主题"," b", "文本-1" " B" "你的消息"," b"