update : 2015.11.03
php.shukuma.com검색:
|
MongoId::__construct(PECL mongo >= 0.8.0) MongoId::__construct — Creates a new id 설명
public MongoId::__construct
([ string|MongoId
$id = NULL
] )반환값Returns a new id. 변경점
예제Example #1 MongoId::__construct() example This example shows how to create a new id. This is seldom necessary, as the driver adds an id to arrays automatically before storing them in the database.
<?php 위 예제의 출력 예시: 49a7011a05c677b9a916612a 49a702d5450046d3d515d10d Example #2 Parameter example This example shows how to use a string parameter to initialize a MongoId with a given value.
<?php 위 예제의 출력 예시: bool(true) 참고
|