<?php$m = new MongoClient();$res = $m->demo->poiConcat->aggregate( [ /* First we match all documents that have a cuisine tag: */ [ '$match' => [ 'ts' => new MongoRegex( '/^cuisine=/' ) ] ],] );var_dump( $res['result'] );?>