时间:2021-07-01 10:21:17 帮助过:33人阅读
$s='2008-08-08';
echo $s == date("Y-m-d",strtotime($s)) ? 'yes' : 'no' ;
$url = "http://www.liuxingyuyuni.cublog.cn";
if(!preg_match('^(http
------解决方案--------------------
https)\:\/\/([a-zA-Z0-9]+\.)?([a-zA-Z0-9]+\.[a-zA-Z0-9]+)+', $url))
{
echo 'wrong';
}
else
{
echo 'ok';
}