3 ms·
Most fundamentally, PHP combines Perl's array and hash data structures. Although you can access name/value pairs as even and odd array elements, code that doesn
by xirium 18y ago
Most fundamentally, PHP combines Perl's array and hash data structures. Although you can access name/value pairs as even and odd array elements, code that doesn't need both sets of properties will run slower and consume more memory because a structure implementing both sets of properties is implemented automatically.
Why use a languge like that when you're already familiar with Perl?
- t0pj 18y agoThanks. I didn't know about PHP's array/hash combo. Would there be nothing for someone familiar with Perl to learn from using a language like Python? I appreciate your thoughts.
- jrockway 18y agoIf I recall correctly, a PHP "array" doesn't necessarily iterate (with foreach) in numerical order. That's just weird.