Now the PHP side takes WebService from the Java side, and the map type of Java will not be encapsulated.
There are two known formats:
For arrays of Java, we use PHP arrays to match them.
For Java objects, we use stdClass to correspond.
So, how to encapsulate the PHP side for the map type of Java. Worry about people. Ask God for help.
To help you distinguish:
java.util.List The package is array, but the array key is an integer eg: $arr of increment int type = “AAA”;
java.util.Map The package is array, but the key of this array is string, the key value pair. Eg: $arr[“a”] = “AAA”;
php Array covers many types of other languages.
You can use PHP array to correspond to Java map.