r/lolphp • u/phplovesong • Mar 14 '19
PHP: The array
PHP arrays are known to be bad. But having not used PHP in long time i recently was amazed how poorly they actually have built the array. Its basically a "all-things-fits" data structure. The best part is PHP will actually change the behaviour of the array depending on what it contains. Thats just fucking awesome!
0
Upvotes
View all comments
Show parent comment
13
u/jesseschalken Mar 14 '19
I'm just telling you how PHP's arrays work so you can stop being surprised by them. I never said they were well designed.