Home >Backend Development >PHP Tutorial >pretty dear rhythm my future php public function list [regular]
复制代码 代码如下:
/*********************************************************************
* 公用函数列表
* ubb,getip,GoIn,goback,IsInt,InString
* OurHome:http://iwind.org
* http://10.13.31.90/~coldwind
*
* */
/////////////////ubb支持代码函数////////////////////////////
function ubb($Text) {
$Text=trim($Text);
$Text=htmlspecialchars($Text);
$Text=ereg_replace("\n","
",$Text);
$Text=preg_replace("/\\t/is"," ",$Text);
$Text=preg_replace("/\[h1\](.+?)\[\/h1\]/is","
\\1",$Text);
quote:", $Text);
\\1
code:", $Text);
\\1
$saying"; } /////////// /////////Determine whether the string contains a certain value in array////////////////// function InString($array,$string){ while(list(,$value)=each($array)){ if(eregi($value,$string)){ return true; exit; } } } /////// /////////////Link to a page/////////////////////////////////// /////// function GoIn($addr,$saying){ echo"
} /////////////////////JS return// ////////////////////////////////////////////// function IsInt($string ){ if(ereg("^[0-9]{0,}$",$string)){ return true; } else { return false; } } ?> The above introduces the pretty rhythm dear my future PHP public function list [regular], including the content of pretty rhythm dear my future. I hope it will be helpful to friends who are interested in PHP tutorials.
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 Previous article:sock publishes an HTTP download class written in PHP fsockopenNext article:sock publishes an HTTP download class written in PHP fsockopen Related articlesSee more |