MongoDB PHP using $in with array MongoDB PHP using $in with array php php

MongoDB PHP using $in with array


It's likely that the data types of the numbers are not the same. Try using var_dump() on the built array, and the specified array. You'll probably see one has them as numbers in a string, and the other as simple integers.