Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- converting code using Java Vector to PHP
- William Krick
September 29, 2004, 6:21 pm
rate this thread
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
Re: converting code using Java Vector to PHP
$input = array("red", "green", "blue", "yellow");
array_splice($input, 3, 0, "purple");
// $input is now array("red", "green",
// "blue", "purple", "yellow");
hope this helps
Salil Das | It's ok to kiss a fool,
bugs@cc | It's ok to let a fool kiss you,
| but never ever let a kiss fool you.
- » PHP:Unable to post variables from html form to mysql database
- — Previous thread in » PHP Scripting Forum