I have a PHP array and I would like to construct similar array in Java.
I have tried using Java arrays, maps and even ArrayList
but they didn't gave me the exact structure as in the PHP sample.
Below is the PHP Array Sample:
[name] => Array
(
[0] => shoes
[1] => canvas
)
What I need is a Java construct which when sent to a PHP script, the script should be able to format it just like the above.