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
How can you get web browser’s details using PHP?
What is difference between sql and php?
what is the scope of php in the future if any other language is developed then may be php is loss ???
What is php sequence?
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
Can php run without apache?
What is difference between variable declaration and variable definition?
what are the differences between php and perl
How can we display information of a variable and readable by human with php?
What is the difference between runtime exception and compile time exception?
How to concatenate two strings in php?
What is the difference between "echo" and "print" in php?
Why do you need php?
What is psr in php?
How to break a file path name into parts?