converting code using Java Vector to PHP
From: William Krick (wkrick_at_gmail.com)
Date: 09/29/04
- Next message: steve: "Re: Re: PHP 4.3.8: Q=5FSERVER=5B=92argv=92=5D"
- Previous message: Stefan Hegenbart: "Re: PHP 4.3.8: Q=5FSERVER=5B=92argv=92=5D_m?= issing"
- Next in thread: Andy Hassall: "Re: converting code using Java Vector to PHP"
- Reply: Andy Hassall: "Re: converting code using Java Vector to PHP"
- Reply: bugs: "Re: converting code using Java Vector to PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Sep 2004 13:21:37 -0700
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
- Next message: steve: "Re: Re: PHP 4.3.8: Q=5FSERVER=5B=92argv=92=5D"
- Previous message: Stefan Hegenbart: "Re: PHP 4.3.8: Q=5FSERVER=5B=92argv=92=5D_m?= issing"
- Next in thread: Andy Hassall: "Re: converting code using Java Vector to PHP"
- Reply: Andy Hassall: "Re: converting code using Java Vector to PHP"
- Reply: bugs: "Re: converting code using Java Vector to PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|