大家好,
我有一个带键的数组:
$keys
: array =
0: string = Author
1: string = Description
2: string = Title
3: string = Description
另一个带有值的数组:
$values
: array =
0: string = Margaret Atwood
1: string = A wonderful Canadian writer
2: string = The handmaids tale
3: string = One of the most wonderful books of the year
为了打印:
Author: Margaret Atwood
Description: A wonderful Canadian writer
Title: The handmaids tale
Description: One of the most wonderful books of the year
我愿意:
$ary= array_combine($keys, $values);
但这打印:
Author: Margaret Atwood
Description: One of the most wonderful books of the year
Title: The handmaids tale
我该怎么做才能获得所需的打印???
恐怕我无法更改键数组中的重复描述:(
非常感谢!!!