Java-like Collections in PHP

后端 未结 7 1347
情话喂你
情话喂你 2021-01-04 01:48

I\'m learning PHP5 (last time I checked PHP was in PHP4 days) and I\'m glad to see that PHP5 OO is more Java-alike than the PHP4 one but there\'s still an issue that makes m

7条回答
  •  悲哀的现实
    2021-01-04 02:29

    PHP arrays are associative... They're far more powerful than Java's arrays, and include much of the functionality of List<> and Map<>.

    What do you mean by "good idea"? They're different tools, using one language in the way you used another usually results in frustration.

提交回复
热议问题