Home >Backend Development >PHP Tutorial >Using PHP and ACCESS to write a chat room (10)_PHP tutorial

Using PHP and ACCESS to write a chat room (10)_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:31:26879browse

func.php(as the current mainstream development language)3
The code is as follows:
(as the current mainstream development language)
function suiji($max)
{
srand((double)microtime()*1000000);
$x=rand();
$y=getrandmax();
$r =$x/$y*($max-1);
$r=round($r++);
return $r;
}

function StrOccurs($sStr, $ sFind){
$sTemp=$sStr;
$iLen=strlen($sFind);
$iCount=0;
while (true){
(strstr( $sTemp, $sFind))
break;
else
$sTemp = instr($sTemp,strpos($sTemp,$sFind)+$iLen );
                                                           }
                      return $iCount; =$iCnt;$i++)
$ret.=$sStr;
return $ret;
}

function DelQuot($sStr){
$s=str_replace(chr (124),"¦",$sStr);
$s=str_replace(chr(39),"´",$s);
$s=str_replace(chr(34),"" ;",$s);
return s;
}

function DelTag($sStr){
$bNeed="False";
$sOther=strtoupper($sStr );
if ($bNeed!="True" || !strstr($sOther," if ($bNeed!="True" || !strstr($sOther," If ($bNeed!="True" || !strstr($sOther," if ($bNeed!="True" || !strstr($sOther," if ($bNeed!=" True" || !strstr($sOther,"Previous page Next page




http://www.bkjia.com/PHPjc/509095.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/509095.htmlTechArticlefunc.php (as the current mainstream development language) 3 The code is as follows: ?php (as the current mainstream development language) Development language) function suiji(max) srand((double)microtime()*1000000); x=rand(); y=getrandma...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn