<?php//时间变成多少分钟前functionget_long_time($date){$curr=time();$date = strtotime($dat...
<?phpfunctiongenerateRandomString($length=10){$characters=&039;0123456789abcdefghijklmnopqrstuvwxyzABCDEF...
第一、PHP方法preg_match("/^[0-9a-zA-Z]+@(([0-9a-zA-Z]+)[.])+[a-z]{2,4}$/i",$email );使用方法:<?phpfunction isEmail($em...
<?phpfunctionlogResult($str=&039;&039;){$fp=fopen("log.txt","a");flock($fp,L...