<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></title> 
<link>http://www.bizeway.net/index.php</link> 
<description><![CDATA[网务通 - 网务公司发展之路]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></copyright>
<item>
<link>http://www.bizeway.net/read.php?</link>
<title><![CDATA[mongodb php 模糊查询 ]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Mongodb]]></category>
<pubDate>Fri, 26 Oct 2012 03:15:40 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?</guid> 
<description>
<![CDATA[ 
	最近项目用到mongodb 的模糊查询，google搜到的方法，记录下Mongodb php 模糊查询 function query(){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$m &nbsp;= new mongo('127.0.0.1',27017); &nbsp; &nbsp; &nbsp; &nbsp; $db = $m->selectDB('dbname'); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$coll= $db->selectCollection('collname'); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$q &nbsp; = new MongoRegex("/word/"); &nbsp; &nbsp; &nbsp; &nbsp; //调用mongodb 正则 &nbsp; $cursor = $coll->find( array('field' => $q )); &nbsp; &nbsp; &nbsp; &nbsp; print $cursor->count(); &nbsp;} &nbsp;<br/>Tags - <a href="tag.php?tag=mango" rel="tag">mango</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] mongodb php 模糊查询 ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>