php常用语句

来源:互联网 发布:网络电视台 编辑:程序博客网 时间:2024/06/14 18:37
$contents=str_replace(array("\r","\n"," "),'',$contents);//字符串替换
$contents=preg_replace($mode,"", $contents);//正则替换
$arr=explode("BEGIN:VCARD",$contents);//字符串分割
preg_match_all($mode_name, $contents,$arr_name);//字符串全匹配
$mode_place="/\s*/";//正则匹配模式
foreach($arr_ones[0] as  $value) {}//foreach循环
count($matchs);//数组长度
0 0