_id:1
email:"j@g.com"
这是我的收藏。当我写
{ email: /^J/i }
在指南针中它工作得很好,但在 php 中
$user_collection->find(
["email" => ['$regex' => "/^j/i"]]
);
什么都没找到
_id:1
email:"j@g.com"
这是我的收藏。当我写
{ email: /^J/i }
在指南针中它工作得很好,但在 php 中
$user_collection->find(
["email" => ['$regex' => "/^j/i"]]
);
什么都没找到