I'm trying to use the "like" comparison in an "IF" statement but I keep getting "parse error, unexpected T_STRING". What am I doing wrong here?
if ($email like "%.fr") { echo<font face=Arial Black size=2>Yada yada yada etc....</font>");
exit(); }
LIKE is a mysql string comparison function not a php one
so what would be the php equivalent?
there are many ways heres 2
if(substr($email,-3)=='.fr') or if(ereg(".*.fr$",$email))
thank you very much!!
owen the samoan