bson_encode

  • (PECL mongo >=1.0.1)
  • Serializes a PHP variable into a BSON string