();"; 2. Get the value through "new HashMap();"."/> ();"; 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

藏色散人
藏色散人Original
2021-10-19 09:20:572080browse

How to implement PHP's dynamic array in JAVA: 1. Get the value through "new HashMap();"; 2. Get the value through "new HashMap();". ,>,>

How to implement PHP's dynamic array in JAVA

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn