ref:note-bson-comparisoncontent:|When evaluating query criteria, MongoDB compares types and values according toits own :manual:`comparison rules for BSON types</reference/bson-type-comparison-order>`, which differs from PHP's:php:`comparison <manual/en/types.comparisons.php>` and :php:`type juggling<manual/en/language.types.type-juggling.php>` rules. When matching a specialBSON type the query criteria should use the respective :php:`BSON class<manual/en/book.bson.php>` in the driver (e.g. use