进行正则表达式匹配 (PHP 3 >= 3.0.9, PHP 4, PHP 5)
int preg_match ( string pattern, string subject [, array matches [, int flags]] )
进行正则表达式匹配 (PHP 3 >= 3.0.9, PHP 4, PHP 5)
int preg_match ( string pattern, string subject [, array matches [, int flags]] )
定义和用法
substr_replace() 函数把字符串的一部分替换为另一个字符串。本函数可安全用于二进制对象。
手册里的定义和用法
strncasecmp() 函数比较两个字符串前n个字符,该函数是二进制安全并且对大小写不敏感的。
该函数返回:
字符串取代。
语法: string str_replace(string needle, string str, string haystack);
call_user_func函数类似于一种特别的调用函数的方法,使用方法如下:
function a($b,$c)
{
echo $b;
echo $c;
}