I've been given the task of converting some existing java code to PHP
so we can integrate it into our web based product.
The problem I'm facing is that the java code makes heavy use of Vector
objects to hold data. This in itself isn't a problem however the java
code makes heavy use of Vector.insertElementAt(). This method inserts
into the vector container at a desired location and shifts the indexes
of all the other items accordingly as necessary.
I don't see any way to really emulate this behavior in with PHP
arrays.
Any thoughts?
....
Krick