Operation example of mongo under thinkphp
This article mainly introduces the operation example of mongo under thinkphp, which is very detailed and has certain reference value. Friends who are interested must finish it!
The operation of mongo under thinkphp
1. Many conditional statements on the Internet are only one greater than or one less than, and there are no two merged statements, such as those greater than 2 and less than 4.
$where ['_ string'] = 'this.b > 2 & this.bwhere ([])-> save ([' averse = > 1])
Note to 5.mongo:
Mongo has relatively strict control over data types. If you save a 1 of int, you can't find it with'1'! The above are all the contents of this article entitled "examples of mongo under thinkphp". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!