国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

java - PHP calls the map type of webservice, how to encapsulate it?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-06-05 11:10:20
0
2
1032

Now when the PHP side calls the webservice on the Java side, the map type for Java will not be encapsulated.
There are two known formats:

  1. For Java arrays, we use PHP arrays to correspond.

  2. For java objects, we use stdclass to correspond.

So for the map type of Java, how to encapsulate it on the PHP side. . Worrying people. . Ask God for help.

PHP中文網(wǎng)
PHP中文網(wǎng)

認證0級講師

reply all(2)
曾經(jīng)蠟筆沒有小新

Help you distinguish:

  1. java.util.List is encapsulated as an array, but the key of this array is an integer of increasing int type. eg: $arr[0] = "aaa";

  2. java.util.Map is encapsulated as an array, but the key of this array is string, key-value pair. eg: $arr["a"] = "aaa";

僅有的幸福

PHP’s array covers many types of other languages.
You can completely use php array to correspond to java map.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template