How can I write a clean codes that get the result array of array_intersec, or array_diff but the keys of the result array are 0, 1, 2, 3, 4, ... instead of the array1's keys?
Thanks!
This will do it:
$res_arr = array_values(array_intersect($arr_1, $arr_2));
thanks!