Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用它在 Mongodb 集合中查找“包含”任何字符串的文档:
$query[(string) $mongo_record] = array( '$regex' => (string) $value );
然后:
$results = $collection->find( $query );
我应该怎么做才能找到以 x 字符串“开头”的记录?
谢谢