Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 22398 программистов и 1403 робота. Сейчас ищут 588 программистов ...
Приступая к работе

MongoBinData::__construct - Creates a new binary data object.

Вернуться к: MongoBinData

MongoBinData::__construct

(PECL mongo >= 0.8.1)

MongoBinData::__constructCreates a new binary data object.

Описание

public MongoBinData::__construct ( string $data [, int $type = 0 ] )

Creates a new binary data object.

There are seven types of binary data currently recognized by the BSON spec, which are defined as class constants. For backwards compatibility, the PHP driver uses MongoBinData::BYTE_ARRAY as the default; however, this may change to MongoBinData::GENERIC in the future. Users are encouraged to specify a type instead of relying on the default.

Список параметров

data

Binary data.

type

Data type.

Возвращаемые значения

Returns a new binary data object.

Список изменений

Версия Описание
1.5.0 The default changed from 2 (MongoBinData::BYTE_ARRAY) to 0 (MongoBinData::GENERIC).
1.2.11 Emits E_DEPRECATED when the second argument is not used. The default value for type may change in the near future.



Вернуться к: MongoBinData

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware