How to implement PHP's dynamic array in JAVA: 1. Get the value through "new HashMap
();"; 2. Get the value through "new HashMap ,>();". ,>
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
How about JAVA Implementing dynamic arrays in PHP?
java implements php array:
Similar to java's Map
Use numbers to get values:
HashMap<Integer, Object> map = new HashMap<Integer, Object>();
Use strings to get values:
HashMap<String, Object> map = new HashMap<String, Object>();
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to implement PHP's dynamic array in JAVA. For more information, please follow other related articles on the PHP Chinese website!