MongoId::__toString PHP Method

__toString() public method

Returns a hexidecimal representation of this id
public __toString ( ) : string
return string
    public function __toString()
    {
        return (string) $this->objectID;
    }

Usage Example

コード例 #1
0
ファイル: Id.php プロジェクト: webcodr/mango
 public function __construct($value = null)
 {
     if (!$value instanceof \MongoId) {
         $value = new \MongoId($value);
     }
     $this->value = $value->__toString();
 }
All Usage Examples Of MongoId::__toString