Hello,
I have a question in regard to PHP arrays.
If I create an array
$ids = array();
then put something in position 1000 of it:
$ids[1000] = 5;
How would the interpreter do this internally? Are arrays contiguous lumps of memory like Java? Would it be like int[1000] where 1000 ints are initlialized?
Or is it more of a map where 1000 is the key and it links to the data of 5? I am talking about the internals of PHP.
If I have a large number index, would it be less efficient because it would have to initialize all the indexes? OR is it map based with the number as a key?