MongoUtil
PHP Manual

MongoUtil::toIndexString

(PECL mongo >=0.9.0)

MongoUtil::toIndexStringConverts a field or array of fields into an underscore-separated string

Description

public static string MongoUtil::toIndexString ( string|array $keys )

Parameters

keys

Field(s) to convert.

Return Values

Returns the index name.


MongoUtil
PHP Manual