Re: [PHP-WIN] extracting value from array

2001-07-30 Thread Michael Kelley
Easiest (not best or fastest I'm sure) is Walk through the original array ... For(i=0,j=0; i < $array.count; i++) { //Look for your xyz123 (if its not there write to new array) if array(i) != "xyz123" { $array2(j) = $array(i)

[PHP-WIN] extracting value from array

2001-07-30 Thread afan
Hi all, my problem is following: let's say there is an array with 10 elements. $array = array('$value1', '$value2', '$value3', '$value4', '$value5', '$value6', '$value7', '$value8', '$value9', '$value10'); One of elements has value 'xyz123' - I do not know which one. How can I extract this elem