I created an array like this $array1[] = ""; in the loop, I use array_push($array1, $some_value); to insert element into the array. After loop, when I print out all elements, the first element is an empty string. I think the problem is from $array1[] = ""; then I changed it to $array1[] = null; The problem still remains.
I produced two arrays like this. So far I just remove the first element in these two array. I make an intersection for two array. The result array still have the same problem. Even I declared and used it once:
$result_array = array_intersect ($array1, $array2);
Any help please.