How can we extract string 'abc.com' from a string
"http://info@abc.com" using regular expression of PHP
Answer Posted / sameer joshi
You can do like $site_array=explod("@","http://info@abc.com");
$site_addr=$sitr_array[1];
$site_addr will get the value as abc.com
| Is This Answer Correct ? | 13 Yes | 7 No |
Post New Answer View All Answers
Can a super () and this () keywords be in same constructor?
What are the php functions?
What are string functions?
How to read one character from a file?
What is a base url?
What is php mainly used for?
What is variable declaration?
Which function parses an English textual date or time into Unix timestamp in PHP.
what does this symbol mean in php?
Explain how you can update memcached when you make changes to php?
What is $_ get and $_ post in php?
Do you know what is the use of rand() in php?
Explain php explode() function.
How to find the position of the first occurrence of a substring in a string?
How does api connect to database?