View Single Post
  #4 (permalink)  
Old 11-20-09, 08:04 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Quote:
Basically, I'm just looking to block anything that ends with .ru
You could also use strrchr.

PHP: strrchr - Manual

PHP Code:

$mRu=strrchr('.ru',strtolower($sEmail));

if (
$mRu!=false)
  
$mRu=($mRu=='.ru'); 
Not tested.
Reply With Quote