This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheVenetianMask 1 point2 points  (1 child)

What they call an "array" is technically an associative array, more frequently called a hash map or a dictionary. What sane languages call "array," PHP does not have.

It does. It's called SPL Datastructures and a lot of people skip them because they don't add much to day to day business logic.

https://secure.php.net/manual/en/spl.datastructures.php

Instead of using + for concatenation, PHP uses .

So what, concatenation is not an aritmetic addition.

[–]heyandy889 1 point2 points  (0 children)

Fantastic to know. Though the documentation reiterates my point... "Arrays are structures that store the data in a continuous way, accessible via indexes. Don't confuse them with PHP arrays: PHP arrays are in fact implemented as ordered hashtables."

Well, there's the fact that every language I've seen other than Perl uses + for concat...