();"; 2. Get the value through "new HashMap Home >Backend Development >PHP Problem >How to implement PHP's dynamic array in JAVA How to implement PHP's dynamic array in JAVA: 1. 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: Use strings to get values: 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!How to implement PHP's dynamic array in JAVA
HashMap<Integer, Object> map = new HashMap<Integer, Object>();
HashMap<String, Object> map = new HashMap<String, Object>();