We can use the preg_match() function with "/.*@(.*)$/" as the regular expression pattern.
For example:
preg_match("/.*@(.*)$/","http://info@abc.com",$data);
echo $data[1];
For example:
preg_match("/.*@(.*)$/","http://info@abc.com",$data);
echo $data[1];
0 comments:
Post a Comment