复制代码 代码如下:
/*********************************************************************
* 公用函数列表
* 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.
Related labels:
Previous article:sock publishes an HTTP download class written in PHP fsockopen
Next article:Customizable PHP thumbnail generator requires GD library support
Statement of this Website
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
Latest Articles by Author
Latest Issues
Team collaboration - What should I do if someone needs the feature I wrote as a dependency in git flow?
From 1970-01-01 08:00:00
0
0
0
Confusion about using gitlab's fork&pull request mode within the team
From 1970-01-01 08:00:00
0
0
0
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
|