ERROR with filter_var
Posted: Thu May 29, 2008 2:51 am
hi guys, need help again, why filter_var cannot run in my comp
this is the script(just simple script)
and the error :
Fatal error: Call to undefined function: filter_var() in C:\......
can someone help me?
thx
this is the script(just simple script)
Code: Select all
<?php
$email = "someone@exa mple.com";
if(!filter_var($email, FILTER_VALIDATE_EMAIL))
{
echo "E-mail is not valid";
}
else
{
echo "E-mail is valid";
}
?>Fatal error: Call to undefined function: filter_var() in C:\......
can someone help me?
thx