Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
July 29, 2006, 12:33 am
rate this thread
I only use indexed arrays.
When I use array_intersect function, of $a3 = array_intersect( $a1,
$a2 ), I just need the vales of intersect array and let keys to be
re-numberred from 0.;
I found the intersect array $a3 have the correct values but keep the
keys of $a1. When I use
for loop from $index=0 to sizeof ($a3)-1, by $a3[$index], php reports
"undefined offset " problem.
How can I re-number the keys of $a3 from 0 to sizeof($a3)-1;
- » Population array from string of comma separated numbers?
- — Previous thread in » PHP Scripting Forum