How can we extract string 'abc.com' from a string
"http://info@abc.com" using regular expression of PHP
Answer Posted / gaurav
you can use array split
$site_arr=split("@", "http://info@abc.com");
$site_name=$site_arr[1];
$site_name will have the value abc.com.
| Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
Why do you need php?
Is null or empty c#?
Explain mysql_errno()?
Will php die?
What is a query in php?
how to track no of users logged in?
How to turn on the session support in php?
Explain how can php and javascript interact?
Do you know what is the differences between $a != $B and $a !== $B?
Is array function in php?
What are the characteristics of php?
What is file upload?
What is the difference between session_unregister() and session_unset()?
How is csrf token generated?
What does a special set of tags do in php?