<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[微软产品研究 - php]]></title>
<link>http://www.ainy.com.cn/</link>
<description><![CDATA[爱尼网络科技]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[your@email.com(Ainy)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>微软产品研究</title>
	<url>http://www.ainy.com.cn/images/logos.gif</url>
	<link>http://www.ainy.com.cn/</link>
	<description>微软产品研究</description>
</image>

			<item>
			<link>http://www.ainy.com.cn/article/7.htm</link>
			<title><![CDATA[PHP彩票随机生成程序]]></title>
			<author>your@email.com(ainy)</author>
			<category><![CDATA[php]]></category>
			<pubDate>Wed,20 May 2009 23:11:47 +0800</pubDate>
			<guid>http://www.ainy.com.cn/default.asp?id=7</guid>
		<description><![CDATA[喜欢买彩票的研究一下喽<br/>&lt;table width=&#34;400&#34; border=&#34;1&#34; cellspacing=&#34;0&#34; cellpadding=&#34;0&#34; &gt;<br/>&lt;?php <br/>for ($n=1;$n&lt;=20;$n++) { <br/>echo &#34;&lt;tr&gt;&lt;td bgcolor=#cccccc width=80&gt;第&#34;.$n.&#34;注 &lt;/td&gt;&#34;; <br/>$string=&#34;&#34;;//初始化字符串 <br/><br/>for ($i=1;$i&lt;=7;$i++) { <br/>mt_srand((double)microtime()*1000000);//加入时间的因素，以执行时的百万分之一秒当乱数种子 <br/>$random=mt_rand(1,30);//产生1-30间的随机数 <br/><br/><br/>if (eregi($random,$string)){//检查此数是否已经存在 <br/><br/>$i--; <br/>continue;//跳出循环，回到判断起始处。 <br/>} <br/><br/>else{ <br/>$string=$string.&#34;,&#34;.$random;<br/>&nbsp;&nbsp; echo &#34;&lt;td bgcolor=#efefef&gt;&#34;;<br/>echo $random,&#34; &#34;;} <br/>} <br/>echo &#34;&lt;/td&gt;&lt;/tr&gt;&#34;; <br/>} <br/>?&gt; <br/>&lt;/table&gt;]]></description>
		</item>
		
</channel>
</rss>
