Hi all,
I have a question regarding array indices:

At a certain point in code, I run array_diff() on two arrays to produce a reduced 
version of one of the argument arrays.
Problem is, I dont want the key-value associations to be preserved. 
I need that the returned array has new (integer, not string) indices in numerical 
order from 0...N without holes.

Does anybody know how to do this? I have looked at different sort functions etc, but 
I'd rather not do a sort to the array.
The code is for random selection with reduction of the sample set (i.e. with 

All the best, 


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to