6. How can we extract string ‘abc.com ‘ from a string ‘http://info@abc.com’ using regular expression of PHP?
A: i. using strstr function Echo strstr(“http://info@abc.com”, ‘@’) or ii. using list and split functions list($first,$second)=split(“@”,”http://info@abc.com”,2) echo $second;
2 comments:
It will give parse error on first line can u help me
Post a Comment