ensure that word exists in variable
i select website addresses from database all that i need is ensure that is '.com' exists in variable or not
if $x='www.yahoo.com' --> return true.
but if $x='www.yahoo' --> return false with error message website is not entered correctly.
thanks in advance