$email =“asdhjgg@163.com”;
if(eregi(”^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$”,$email))
{
echo '<p>This is a valid email.<p>';
}
else
{
echo '<p>This is an invalid email.</p>';
}
Parse error: syntax error, unexpected '[' in D:\AppServ\www\8\zy3.php on line 16
总是出这个问题,大神帮帮忙,看看
猜是 @[这个@
(\.[_a-z0-9-]+)* 感觉这里有问题 ,+去掉 或*改成? 试试