1
2相同的密钥不同JSON阵列下面:比较2个JSON阵列与PHP相同的密钥等
阵列1:
{ "fruit1" : "Apple", "fruit2" : "Banana", "fruit3" : "Grapes" }
阵列2:
{ "fruit1" : "First Fruit", "fruit2" : "Second Fruit", "fruit3" : "Third Fruit" }
,你可以请参阅2个具有相同键但不同值的阵列,现在我想要的是我想要的结果或显示如下所示:
First Fruit is Apple
Second Fruit is Banana
Third Fruit is Grapes
谢谢!
的想法是将JSON字符串* *(有一个JSON数组没有这样的事情),以关联数组,然后通过该键/值对转换。 –