|
MongoCollection::toIndexStringConverts keys specifying an index to its identifying string Description
static protected string MongoCollection::toIndexString
( mixed
$keys
)Parameters
Return ValuesReturns a string that describes the index. ExamplesExample #1 MongoCollection::toIndexString example This example shows how you can create an index name out of of keys. Because this is a protected (static) method, you need to overload it in a child class first.
<?php See AlsoMongoDB core docs on » indexes. |